diff options
Diffstat (limited to 'test/json-structure/arrays-in-object')
-rw-r--r-- | test/json-structure/arrays-in-object/check.txt | 4 | ||||
-rw-r--r-- | test/json-structure/arrays-in-object/input.json | 10 |
2 files changed, 14 insertions, 0 deletions
diff --git a/test/json-structure/arrays-in-object/check.txt b/test/json-structure/arrays-in-object/check.txt new file mode 100644 index 0000000..1f4654e --- /dev/null +++ b/test/json-structure/arrays-in-object/check.txt @@ -0,0 +1,4 @@ +$object['footnotes'].value +$object['rows'].array[4].object(*)['age'].value +$object['rows'].array[4].object(*)['error'].value +$object['rows'].array[4].object(*)['name'].value diff --git a/test/json-structure/arrays-in-object/input.json b/test/json-structure/arrays-in-object/input.json new file mode 100644 index 0000000..2b5dbf1 --- /dev/null +++ b/test/json-structure/arrays-in-object/input.json @@ -0,0 +1,10 @@ +{ + "rows": [ + {"name": "a", "age": 12}, + {"name": "b", "age": 13}, + {"name": "c", "age": 14}, + {"error": -1} + ], + + "footnotes": "some footnotes." +} |