/
output.json
74 lines (74 loc) 路 2.9 KB
/
output.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"type": "File",
"start":0,"end":71,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":71,"index":71}},
"errors": [
"SyntaxError: A JSON module can only be imported with `default`. (1:18)"
],
"program": {
"type": "Program",
"start":0,"end":71,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":71,"index":71}},
"sourceType": "module",
"interpreter": null,
"body": [
{
"type": "ImportDeclaration",
"start":0,"end":71,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":71,"index":71}},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start":7,"end":14,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":14,"index":14}},
"local": {
"type": "Identifier",
"start":7,"end":14,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":14,"index":14},"identifierName":"fixture"},
"name": "fixture"
}
},
{
"type": "ImportSpecifier",
"start":18,"end":23,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":23,"index":23}},
"imported": {
"type": "Identifier",
"start":18,"end":23,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":23,"index":23},"identifierName":"named"},
"name": "named"
},
"local": {
"type": "Identifier",
"start":18,"end":23,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":23,"index":23},"identifierName":"named"},
"name": "named"
}
}
],
"source": {
"type": "StringLiteral",
"start":31,"end":47,"loc":{"start":{"line":1,"column":31,"index":31},"end":{"line":1,"column":47,"index":47}},
"extra": {
"rawValue": "./fixture.json",
"raw": "\"./fixture.json\""
},
"value": "./fixture.json"
},
"assertions": [
{
"type": "ImportAttribute",
"start":57,"end":69,"loc":{"start":{"line":1,"column":57,"index":57},"end":{"line":1,"column":69,"index":69}},
"key": {
"type": "Identifier",
"start":57,"end":61,"loc":{"start":{"line":1,"column":57,"index":57},"end":{"line":1,"column":61,"index":61},"identifierName":"type"},
"name": "type"
},
"value": {
"type": "StringLiteral",
"start":63,"end":69,"loc":{"start":{"line":1,"column":63,"index":63},"end":{"line":1,"column":69,"index":69}},
"extra": {
"rawValue": "json",
"raw": "\"json\""
},
"value": "json"
}
}
]
}
],
"directives": []
}
}