summaryrefslogtreecommitdiffstats
path: root/test/json/nested2
diff options
context:
space:
mode:
Diffstat (limited to 'test/json/nested2')
-rw-r--r--test/json/nested2/check.txt20
-rw-r--r--test/json/nested2/input.json6
-rw-r--r--test/json/nested2/output.yaml4
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