aboutsummaryrefslogtreecommitdiffstats
path: root/libtests/qtest/json_handler/json_handler.out
blob: 4f340b8565d50a68b61a7d2e4c234e81078d8d2a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
-- 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: [
  "x",
  false,
  "y",
  null,
  true
]
.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
-- fallback --
.: json: {
  "five": "not-array"
}
.five: string: not-array
.: 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 .