diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 05:48:59 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 05:48:59 +0000 |
commit | c484829272cd13a738e35412498e12f2c9a194ac (patch) | |
tree | a1f5ec09629ee895bd3963fa8820b45f2f4c574b /test/json-structure/arrays-in-object | |
parent | Initial commit. (diff) | |
download | liborcus-upstream.tar.xz liborcus-upstream.zip |
Adding upstream version 0.19.2.upstream/0.19.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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." +} |