summaryrefslogtreecommitdiffstats
path: root/test/json-structure/repeat-objects-2
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 05:48:59 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 05:48:59 +0000
commitc484829272cd13a738e35412498e12f2c9a194ac (patch)
treea1f5ec09629ee895bd3963fa8820b45f2f4c574b /test/json-structure/repeat-objects-2
parentInitial commit. (diff)
downloadliborcus-c484829272cd13a738e35412498e12f2c9a194ac.tar.xz
liborcus-c484829272cd13a738e35412498e12f2c9a194ac.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-2')
-rw-r--r--test/json-structure/repeat-objects-2/check.txt6
-rw-r--r--test/json-structure/repeat-objects-2/input.json6
2 files changed, 12 insertions, 0 deletions
diff --git a/test/json-structure/repeat-objects-2/check.txt b/test/json-structure/repeat-objects-2/check.txt
new file mode 100644
index 0000000..9e406e0
--- /dev/null
+++ b/test/json-structure/repeat-objects-2/check.txt
@@ -0,0 +1,6 @@
+$array[3].object(*)['age'].value
+$array[3].object(*)['name'].value
+$array[3].object(*)['props'].object['alpha'].value
+$array[3].object(*)['props'].object['beta'].value
+$array[3].object(*)['props'].object['gamma'].value
+$array[3].object(*)['props'].object['theta'].value
diff --git a/test/json-structure/repeat-objects-2/input.json b/test/json-structure/repeat-objects-2/input.json
new file mode 100644
index 0000000..54ba1cc
--- /dev/null
+++ b/test/json-structure/repeat-objects-2/input.json
@@ -0,0 +1,6 @@
+[
+ {"name": "a", "age": 12, "props": {"alpha": 1, "beta": 2}},
+ {"name": "b", "age": 13, "props": {"gamma": 3}},
+ {"name": "c", "age": 14, "props": {"theta": 4}},
+]
+