Implement support for \u escapes
[jansson.git] / test / testdata / invalid
1 ====
2 1
3 '[' or '{' expected near end of file
4 ========
5 null
6 ====
7 1
8 '[' or '{' expected near 'null'
9 ========
10 {
11 ====
12 2
13 string or '}' expected near end of file
14 ========
15 [
16 ====
17 2
18 ']' expected near end of file
19 ========
20 [,
21 ====
22 1
23 unexpected token near ','
24 ========
25 [1,
26 ====
27 2
28 ']' expected near end of file
29 ========
30 ["a
31 ====
32 1
33 unexpected newline near '"a'
34 ========
35 ["a"
36 ====
37 2
38 ']' expected near end of file
39 ========
40 ['
41 ====
42 1
43 invalid token near '''
44 ========
45 {,
46 ====
47 1
48 string or '}' expected near ','
49 ========
50 {"
51 ====
52 1
53 unexpected newline near '"'
54 ========
55 {"a
56 ====
57 1
58 unexpected newline near '"a'
59 ========
60 {"a"
61 ====
62 2
63 ':' expected near end of file
64 ========
65 {'a'
66 ====
67 1
68 string or '}' expected near '''
69 ========
70 {"a":
71 ====
72 2
73 unexpected token near end of file
74 ========
75 {"a":"a
76 ====
77 1
78 unexpected newline near '"a'
79 ========
80 {[
81 ====
82 1
83 string or '}' expected near '['
84 ========
85 [{
86 ====
87 2
88 string or '}' expected near end of file
89 ========
90 [{}
91 ====
92 2
93 ']' expected near end of file
94 ========
95 [1,]
96 ====
97 1
98 unexpected token near ']'
99 ========
100 [1,
101 2,
102 3,
103 4,
104 5,
105 ]
106 ====
107 6
108 unexpected token near ']'
109 ========
110 [1.]
111 ====
112 1
113 invalid token near '1.'
114 ========
115 [1e]
116 ====
117 1
118 invalid token near '1e'
119 ========
120 [1ea]
121 ====
122 1
123 invalid token near '1e'
124 ========
125 [012]
126 ====
127 1
128 invalid token near '0'
129 ========
130 [-012]
131 ====
132 1
133 invalid token near '-0'
134 ========
135 ["       <-- tab character"]
136 ====
137 1
138 control character 0x9 near '"'
139 ========
140 ["\u0000 (null byte not allowed)"]
141 ====
142 1
143 \u0000 is not allowed
144 ========
145 ["\uDADA (first surrogate without the second)"]
146 ====
147 1
148 invalid Unicode '\uDADA'
149 ========
150 ["\uD888\u3210 (first surrogate and invalid second surrogate)"]
151 ====
152 1
153 invalid Unicode '\uD888\u3210'
154 ========
155 ["\uDFAA (second surrogate on it's own)"]
156 ====
157 1
158 invalid Unicode '\uDFAA'