summaryrefslogtreecommitdiffstats
path: root/test/json-structure/nested-arrays
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/nested-arrays
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 '')
-rw-r--r--test/json-structure/nested-arrays-mixed-2/check.txt3
-rw-r--r--test/json-structure/nested-arrays-mixed-2/input.json15
-rw-r--r--test/json-structure/nested-arrays-mixed/check.txt3
-rw-r--r--test/json-structure/nested-arrays-mixed/input.json15
-rw-r--r--test/json-structure/nested-arrays/check.txt1
-rw-r--r--test/json-structure/nested-arrays/input.json5
6 files changed, 42 insertions, 0 deletions
diff --git a/test/json-structure/nested-arrays-mixed-2/check.txt b/test/json-structure/nested-arrays-mixed-2/check.txt
new file mode 100644
index 0000000..1347175
--- /dev/null
+++ b/test/json-structure/nested-arrays-mixed-2/check.txt
@@ -0,0 +1,3 @@
+$array[2].array(*)[3].object['age'].value
+$array[2].array(*)[3].object['name'].value
+$array[2].array(*)[3].value[1,2]
diff --git a/test/json-structure/nested-arrays-mixed-2/input.json b/test/json-structure/nested-arrays-mixed-2/input.json
new file mode 100644
index 0000000..b63feb3
--- /dev/null
+++ b/test/json-structure/nested-arrays-mixed-2/input.json
@@ -0,0 +1,15 @@
+[
+ [
+ 3,
+ 4,
+ 5
+ ],
+ [
+ {
+ "name": "Jane Doe",
+ "age": -1
+ },
+ 1,
+ 2
+ ]
+]
diff --git a/test/json-structure/nested-arrays-mixed/check.txt b/test/json-structure/nested-arrays-mixed/check.txt
new file mode 100644
index 0000000..1347175
--- /dev/null
+++ b/test/json-structure/nested-arrays-mixed/check.txt
@@ -0,0 +1,3 @@
+$array[2].array(*)[3].object['age'].value
+$array[2].array(*)[3].object['name'].value
+$array[2].array(*)[3].value[1,2]
diff --git a/test/json-structure/nested-arrays-mixed/input.json b/test/json-structure/nested-arrays-mixed/input.json
new file mode 100644
index 0000000..d0d7617
--- /dev/null
+++ b/test/json-structure/nested-arrays-mixed/input.json
@@ -0,0 +1,15 @@
+[
+ [
+ {
+ "name": "Jane Doe",
+ "age": -1
+ },
+ 1,
+ 2
+ ],
+ [
+ 3,
+ 4,
+ 5
+ ]
+]
diff --git a/test/json-structure/nested-arrays/check.txt b/test/json-structure/nested-arrays/check.txt
new file mode 100644
index 0000000..03123e8
--- /dev/null
+++ b/test/json-structure/nested-arrays/check.txt
@@ -0,0 +1 @@
+$array[2].array(*)[3].value[0,1,2]
diff --git a/test/json-structure/nested-arrays/input.json b/test/json-structure/nested-arrays/input.json
new file mode 100644
index 0000000..e4e6b99
--- /dev/null
+++ b/test/json-structure/nested-arrays/input.json
@@ -0,0 +1,5 @@
+[
+ [0, 1, 2],
+ [3, 4, 5]
+]
+