From c484829272cd13a738e35412498e12f2c9a194ac Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 07:48:59 +0200 Subject: Adding upstream version 0.19.2. Signed-off-by: Daniel Baumann --- test/json-structure/repeat-objects/check.txt | 2 ++ test/json-structure/repeat-objects/input.json | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 test/json-structure/repeat-objects/check.txt create mode 100644 test/json-structure/repeat-objects/input.json (limited to 'test/json-structure/repeat-objects') 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"}, +] -- cgit v1.2.3