mirror of
https://github.com/qpdf/qpdf.git
synced 2025-01-09 01:44:16 +00:00
ce3406e93f
If some keys depend on others, we have to check up front since there is no control of what order key handlers will be called. Anyway, keys are unordered in json, so we don't want to depend on ordering.
66 lines
981 B
Plaintext
66 lines
981 B
Plaintext
-- scalar --
|
|
.: string: potato
|
|
-- all --
|
|
.: 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
|
|
}
|
|
.five: json: array begin
|
|
.five[0]: string: x
|
|
.five[1]: bool: false
|
|
.five[2]: string: y
|
|
.five[3]: null
|
|
.five[4]: bool: true
|
|
.five: json: array end
|
|
.four: json: [
|
|
"a",
|
|
1
|
|
]
|
|
.one: string: potato
|
|
.phour: json: null
|
|
.six: json: {
|
|
"a": {
|
|
"Q": "baaa",
|
|
"b": "quack"
|
|
},
|
|
"b": "moo"
|
|
}
|
|
.six.a: json: {
|
|
"Q": "baaa",
|
|
"b": "quack"
|
|
}
|
|
.six.a.Q: json: "baaa"
|
|
.six.a.b: string: quack
|
|
.six.a: json: dict end
|
|
.six.b: string: moo
|
|
.six: json: dict end
|
|
.three: bool: true
|
|
.two: number: 3.14
|
|
.: json: dict end
|
|
-- errors --
|
|
bad type at top: JSON handler: value at . is not of expected type
|
|
.: json: {
|
|
"x": "y"
|
|
}
|
|
unexpected key: JSON handler found unexpected key x in object at .
|