2022-01-19 14:31:28 +00:00
|
|
|
-- scalar --
|
|
|
|
.: string: potato
|
|
|
|
-- all --
|
2022-01-30 13:18:04 +00:00
|
|
|
.: json: {
|
|
|
|
"five": [
|
|
|
|
"x",
|
|
|
|
false,
|
|
|
|
"y",
|
|
|
|
null,
|
|
|
|
true
|
|
|
|
],
|
|
|
|
"four": [
|
|
|
|
"a",
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"one": "potato",
|
|
|
|
"phour": null,
|
|
|
|
"six": {
|
|
|
|
"a": {
|
|
|
|
"Q": "baaa",
|
|
|
|
"b": "quack"
|
|
|
|
},
|
|
|
|
"b": "moo"
|
|
|
|
},
|
|
|
|
"three": true,
|
|
|
|
"two": 3.14
|
|
|
|
}
|
2022-01-30 18:45:02 +00:00
|
|
|
.five: json: [
|
|
|
|
"x",
|
|
|
|
false,
|
|
|
|
"y",
|
|
|
|
null,
|
|
|
|
true
|
|
|
|
]
|
2022-01-19 14:31:28 +00:00
|
|
|
.five[0]: string: x
|
|
|
|
.five[1]: bool: false
|
|
|
|
.five[2]: string: y
|
|
|
|
.five[3]: null
|
|
|
|
.five[4]: bool: true
|
2022-01-20 13:53:53 +00:00
|
|
|
.five: json: array end
|
2022-01-19 14:31:28 +00:00
|
|
|
.four: json: [
|
|
|
|
"a",
|
|
|
|
1
|
|
|
|
]
|
|
|
|
.one: string: potato
|
|
|
|
.phour: json: null
|
2022-01-30 13:18:04 +00:00
|
|
|
.six: json: {
|
|
|
|
"a": {
|
|
|
|
"Q": "baaa",
|
|
|
|
"b": "quack"
|
|
|
|
},
|
|
|
|
"b": "moo"
|
|
|
|
}
|
|
|
|
.six.a: json: {
|
|
|
|
"Q": "baaa",
|
|
|
|
"b": "quack"
|
|
|
|
}
|
2022-01-19 14:31:28 +00:00
|
|
|
.six.a.Q: json: "baaa"
|
|
|
|
.six.a.b: string: quack
|
2022-01-20 13:53:53 +00:00
|
|
|
.six.a: json: dict end
|
2022-01-19 14:31:28 +00:00
|
|
|
.six.b: string: moo
|
2022-01-20 13:53:53 +00:00
|
|
|
.six: json: dict end
|
2022-01-19 14:31:28 +00:00
|
|
|
.three: bool: true
|
|
|
|
.two: number: 3.14
|
2022-01-20 13:53:53 +00:00
|
|
|
.: json: dict end
|
2024-01-10 01:28:28 +00:00
|
|
|
-- fallback --
|
|
|
|
.: json: {
|
|
|
|
"five": "not-array"
|
|
|
|
}
|
|
|
|
.five: string: not-array
|
|
|
|
.: json: dict end
|
2022-01-19 14:31:28 +00:00
|
|
|
-- errors --
|
|
|
|
bad type at top: JSON handler: value at . is not of expected type
|
2022-01-30 13:18:04 +00:00
|
|
|
.: json: {
|
|
|
|
"x": "y"
|
|
|
|
}
|
2022-01-19 14:31:28 +00:00
|
|
|
unexpected key: JSON handler found unexpected key x in object at .
|