Skip to content

Commit 645fe61

Browse files
committed
Add test JSON data
1 parent f910aed commit 645fe61

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

examples/test_data.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"test_suite": "JSON Parser Test Data",
3+
"version": 1.0,
4+
"description": "A comprehensive set of JSON structures for testing a parser.",
5+
"data": {
6+
"simple_types": {
7+
"string": "Hello, world!",
8+
"integer": 42,
9+
"float": 3.14159,
10+
"boolean_true": true,
11+
"boolean_false": false,
12+
"null_value": null
13+
},
14+
"special_strings": {
15+
"unicode": "こんにちは世界",
16+
"escaped_chars": "This is a string with a \"quote\" and a \\backslash\\.",
17+
"empty_string": ""
18+
},
19+
"nested_structures": {
20+
"object_in_object": {
21+
"level1": {
22+
"level2": {
23+
"key": "value"
24+
}
25+
}
26+
},
27+
"array_in_object": {
28+
"items": [1, "two", true, null]
29+
},
30+
"object_in_array": [
31+
{
32+
"id": 1,
33+
"name": "First Item"
34+
},
35+
{
36+
"id": 2,
37+
"name": "Second Item"
38+
}
39+
]
40+
},
41+
"arrays": {
42+
"array_of_numbers": [1, 2, 3, 4, 5],
43+
"array_of_strings": ["a", "b", "c"],
44+
"array_of_booleans": [true, false, true],
45+
"mixed_array": [1, "two", false, {"key": "value"}],
46+
"empty_array": []
47+
},
48+
"edge_cases": {
49+
"empty_object": {}
50+
}
51+
}
52+
}

0 commit comments

Comments
 (0)