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/nested2 | |
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 '')
-rw-r--r-- | test/json/nested2/check.txt | 20 | ||||
-rw-r--r-- | test/json/nested2/input.json | 6 | ||||
-rw-r--r-- | test/json/nested2/output.yaml | 4 |
3 files changed, 30 insertions, 0 deletions
diff --git a/test/json/nested2/check.txt b/test/json/nested2/check.txt new file mode 100644 index 0000000..84a4d05 --- /dev/null +++ b/test/json/nested2/check.txt @@ -0,0 +1,20 @@ +ns0="http://schemas.kohei.us/orcus/2015/json" +/ns0:array +/ns0:array/ns0:item +/ns0:array/ns0:item/ns0:object +/ns0:array/ns0:item/ns0:object/ns0:item +/ns0:array/ns0:item/ns0:object/ns0:item@name="value" +/ns0:array/ns0:item/ns0:object/ns0:item/ns0:number +/ns0:array/ns0:item/ns0:object/ns0:item/ns0:number@value="1" +/ns0:array/ns0:item +/ns0:array/ns0:item/ns0:object +/ns0:array/ns0:item/ns0:object/ns0:item +/ns0:array/ns0:item/ns0:object/ns0:item@name="value" +/ns0:array/ns0:item/ns0:object/ns0:item/ns0:number +/ns0:array/ns0:item/ns0:object/ns0:item/ns0:number@value="2" +/ns0:array/ns0:item +/ns0:array/ns0:item/ns0:object +/ns0:array/ns0:item/ns0:object/ns0:item +/ns0:array/ns0:item/ns0:object/ns0:item@name="value" +/ns0:array/ns0:item/ns0:object/ns0:item/ns0:number +/ns0:array/ns0:item/ns0:object/ns0:item/ns0:number@value="3" diff --git a/test/json/nested2/input.json b/test/json/nested2/input.json new file mode 100644 index 0000000..6506406 --- /dev/null +++ b/test/json/nested2/input.json @@ -0,0 +1,6 @@ +[ + { "value":1 }, + { "value":2 }, + { "value":3 } +] + diff --git a/test/json/nested2/output.yaml b/test/json/nested2/output.yaml new file mode 100644 index 0000000..bdbece3 --- /dev/null +++ b/test/json/nested2/output.yaml @@ -0,0 +1,4 @@ +--- +- value: 1 +- value: 2 +- value: 3 |