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/repeat-objects | |
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/repeat-objects')
-rw-r--r-- | test/json-structure/repeat-objects/check.txt | 2 | ||||
-rw-r--r-- | test/json-structure/repeat-objects/input.json | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/test/json-structure/repeat-objects/check.txt b/test/json-structure/repeat-objects/check.txt new file mode 100644 index 0000000..df6de0b --- /dev/null +++ b/test/json-structure/repeat-objects/check.txt @@ -0,0 +1,2 @@ +$array[4].object(*)['age'].value +$array[4].object(*)['name'].value diff --git a/test/json-structure/repeat-objects/input.json b/test/json-structure/repeat-objects/input.json new file mode 100644 index 0000000..27882a4 --- /dev/null +++ b/test/json-structure/repeat-objects/input.json @@ -0,0 +1,6 @@ +[ + {"name": "a", "age": 12}, + {"name": "b", "age": true}, + {"name": "c", "age": null}, + {"name": "d", "age": "n/a"}, +] |