summaryrefslogtreecommitdiffstats
path: root/test/json-structure/repeat-objects
diff options
context:
space:
mode:
Diffstat (limited to 'test/json-structure/repeat-objects')
-rw-r--r--test/json-structure/repeat-objects/check.txt2
-rw-r--r--test/json-structure/repeat-objects/input.json6
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"},
+]