jansson/test/testdata/invalid

179 lines
1.9 KiB
Plaintext
Raw Normal View History

2009-07-10 02:01:40 +08:00
====
1
'[' or '{' expected near end of file
========
null
====
1
'[' or '{' expected near 'null'
========
{
====
2
string or '}' expected near end of file
2009-07-10 02:01:40 +08:00
========
[
====
2
']' expected near end of file
========
[,
====
1
unexpected token near ','
========
[1,
====
2
']' expected near end of file
========
["a
====
1
unexpected newline near '"a'
2009-07-10 02:01:40 +08:00
========
["a"
====
2
']' expected near end of file
========
['
====
1
invalid token near '''
========
{,
====
1
string or '}' expected near ','
2009-07-10 02:01:40 +08:00
========
{"
====
1
unexpected newline near '"'
2009-07-10 02:01:40 +08:00
========
{"a
====
1
unexpected newline near '"a'
2009-07-10 02:01:40 +08:00
========
{"a"
====
2
':' expected near end of file
========
{'a'
====
1
string or '}' expected near '''
2009-07-10 02:01:40 +08:00
========
{"a":
====
2
unexpected token near end of file
========
{"a":"a
====
1
unexpected newline near '"a'
2009-07-10 02:01:40 +08:00
========
{"a":"a" 123}
====
1
'}' expected near '123'
========
2009-07-10 02:01:40 +08:00
{[
====
1
string or '}' expected near '['
2009-07-10 02:01:40 +08:00
========
[{
====
2
string or '}' expected near end of file
2009-07-10 02:01:40 +08:00
========
[{}
====
2
']' expected near end of file
========
[1,]
====
1
unexpected token near ']'
========
[1,
2,
3,
4,
5,
]
====
6
unexpected token near ']'
========
[1.]
====
1
invalid token near '1.'
========
[1e]
====
1
invalid token near '1e'
========
[1ea]
====
1
invalid token near '1e'
========
[012]
====
1
invalid token near '0'
========
[-012]
====
1
invalid token near '-0'
========
[troo
====
1
invalid token near 'troo'
========
["\a <-- invalid escape"]
====
1
invalid escape near '"\'
========
2009-07-10 02:01:40 +08:00
[" <-- tab character"]
====
1
control character 0x9 near '"'
2009-07-15 01:47:57 +08:00
========
["\u0000 (null byte not allowed)"]
====
1
\u0000 is not allowed
========
["\uDADA (first surrogate without the second)"]
====
1
invalid Unicode '\uDADA'
========
["\uD888\u3210 (first surrogate and invalid second surrogate)"]
====
1
invalid Unicode '\uD888\u3210'
========
["\uDFAA (second surrogate on it's own)"]
====
1
invalid Unicode '\uDFAA'
========
å
====
1
'[' or '{' expected near 'å'