Debian Codegraph @

tests/indent/json5.json5

raw
1 {
2 // unquoted keys, trailing commas, comments
3 name: "test",
4 version: 1.0,
5 nested: {
6 value: 1,
7 deeper: {
8 flag: true,
9 },
10 },
11 list: [
12 1,
13 2,
14 ],
15 objects: [
16 {
17 id: 1,
18 tags: [
19 "a",
20 "b",
21 ],
22 },
23 {
24 id: 2,
25 },
26 ],
27 matrix: [
28 [
29 1,
30 2,
31 ],
32 [
33 3,
34 4,
35 ],
36 ],
37 }