2009-07-27 03:44:11 +08:00
|
|
|
==== empty ====
|
2009-07-10 02:01:40 +08:00
|
|
|
====
|
|
|
|
1
|
|
|
|
'[' or '{' expected near end of file
|
2009-07-27 03:44:11 +08:00
|
|
|
==== null ====
|
2009-07-10 02:01:40 +08:00
|
|
|
null
|
|
|
|
====
|
|
|
|
1
|
|
|
|
'[' or '{' expected near 'null'
|
2009-07-27 03:44:11 +08:00
|
|
|
==== lone-open-brace ====
|
2009-07-10 02:01:40 +08:00
|
|
|
{
|
|
|
|
====
|
|
|
|
2
|
2009-07-13 16:01:20 +08:00
|
|
|
string or '}' expected near end of file
|
2009-07-27 03:44:11 +08:00
|
|
|
==== lone-open-bracket ====
|
2009-07-10 02:01:40 +08:00
|
|
|
[
|
|
|
|
====
|
|
|
|
2
|
|
|
|
']' expected near end of file
|
2009-07-27 03:44:11 +08:00
|
|
|
==== bracket-comma ====
|
2009-07-10 02:01:40 +08:00
|
|
|
[,
|
|
|
|
====
|
|
|
|
1
|
|
|
|
unexpected token near ','
|
2009-07-27 03:44:11 +08:00
|
|
|
==== bracket-one-comma ====
|
2009-07-10 02:01:40 +08:00
|
|
|
[1,
|
|
|
|
====
|
|
|
|
2
|
|
|
|
']' expected near end of file
|
2009-07-27 03:44:11 +08:00
|
|
|
==== unterminated-string ====
|
2009-07-10 02:01:40 +08:00
|
|
|
["a
|
|
|
|
====
|
|
|
|
1
|
2009-07-14 04:34:31 +08:00
|
|
|
unexpected newline near '"a'
|
2009-07-27 03:44:11 +08:00
|
|
|
==== unterminated-array ====
|
2009-07-10 02:01:40 +08:00
|
|
|
["a"
|
|
|
|
====
|
|
|
|
2
|
|
|
|
']' expected near end of file
|
2009-07-27 03:44:11 +08:00
|
|
|
==== apostrophe ====
|
2009-07-10 02:01:40 +08:00
|
|
|
['
|
|
|
|
====
|
|
|
|
1
|
|
|
|
invalid token near '''
|
2009-07-27 03:44:11 +08:00
|
|
|
==== brace-comma ====
|
2009-07-10 02:01:40 +08:00
|
|
|
{,
|
|
|
|
====
|
|
|
|
1
|
2009-07-13 16:01:20 +08:00
|
|
|
string or '}' expected near ','
|
2009-07-27 03:44:11 +08:00
|
|
|
==== unterminated-empty-key ====
|
2009-07-10 02:01:40 +08:00
|
|
|
{"
|
|
|
|
====
|
|
|
|
1
|
2009-07-14 04:34:31 +08:00
|
|
|
unexpected newline near '"'
|
2009-07-27 03:44:11 +08:00
|
|
|
==== unterminated-key ====
|
2009-07-10 02:01:40 +08:00
|
|
|
{"a
|
|
|
|
====
|
|
|
|
1
|
2009-07-14 04:34:31 +08:00
|
|
|
unexpected newline near '"a'
|
2009-07-27 03:44:11 +08:00
|
|
|
==== object-no-colon ====
|
2009-07-10 02:01:40 +08:00
|
|
|
{"a"
|
|
|
|
====
|
|
|
|
2
|
|
|
|
':' expected near end of file
|
2009-07-27 03:44:11 +08:00
|
|
|
==== object-apostrophes ====
|
2009-07-10 02:01:40 +08:00
|
|
|
{'a'
|
|
|
|
====
|
|
|
|
1
|
2009-07-13 16:01:20 +08:00
|
|
|
string or '}' expected near '''
|
2009-07-27 03:44:11 +08:00
|
|
|
==== object-no-value ====
|
2009-07-10 02:01:40 +08:00
|
|
|
{"a":
|
|
|
|
====
|
|
|
|
2
|
|
|
|
unexpected token near end of file
|
2009-07-27 03:44:11 +08:00
|
|
|
==== object-unterminated-value ====
|
2009-07-10 02:01:40 +08:00
|
|
|
{"a":"a
|
|
|
|
====
|
|
|
|
1
|
2009-07-14 04:34:31 +08:00
|
|
|
unexpected newline near '"a'
|
2009-07-27 03:44:11 +08:00
|
|
|
==== object-garbage-at-end ====
|
2009-07-18 20:59:55 +08:00
|
|
|
{"a":"a" 123}
|
|
|
|
====
|
|
|
|
1
|
|
|
|
'}' expected near '123'
|
2009-07-27 03:44:11 +08:00
|
|
|
==== unterminated-object-and-array ====
|
2009-07-10 02:01:40 +08:00
|
|
|
{[
|
|
|
|
====
|
|
|
|
1
|
2009-07-13 16:01:20 +08:00
|
|
|
string or '}' expected near '['
|
2009-07-27 03:44:11 +08:00
|
|
|
==== unterminated-array-and-object ====
|
2009-07-10 02:01:40 +08:00
|
|
|
[{
|
|
|
|
====
|
|
|
|
2
|
2009-07-13 16:01:20 +08:00
|
|
|
string or '}' expected near end of file
|
2009-07-27 03:44:11 +08:00
|
|
|
==== object-in-unterminated-array ====
|
2009-07-10 02:01:40 +08:00
|
|
|
[{}
|
|
|
|
====
|
|
|
|
2
|
|
|
|
']' expected near end of file
|
2009-07-27 03:44:11 +08:00
|
|
|
==== extra-comma-in-array ====
|
2009-07-10 02:01:40 +08:00
|
|
|
[1,]
|
|
|
|
====
|
|
|
|
1
|
|
|
|
unexpected token near ']'
|
2009-07-27 03:44:11 +08:00
|
|
|
==== extra-command-in-multiline-array ====
|
2009-07-10 02:01:40 +08:00
|
|
|
[1,
|
|
|
|
2,
|
|
|
|
3,
|
|
|
|
4,
|
|
|
|
5,
|
|
|
|
]
|
|
|
|
====
|
|
|
|
6
|
|
|
|
unexpected token near ']'
|
2009-07-27 03:44:11 +08:00
|
|
|
==== real-truncated-at-point ====
|
2009-07-10 02:01:40 +08:00
|
|
|
[1.]
|
|
|
|
====
|
|
|
|
1
|
|
|
|
invalid token near '1.'
|
2009-07-27 03:44:11 +08:00
|
|
|
==== real-truncated-at-e ====
|
2009-07-10 02:01:40 +08:00
|
|
|
[1e]
|
|
|
|
====
|
|
|
|
1
|
|
|
|
invalid token near '1e'
|
2009-07-27 03:44:11 +08:00
|
|
|
==== real-garbage-after-e ====
|
2009-07-10 02:01:40 +08:00
|
|
|
[1ea]
|
|
|
|
====
|
|
|
|
1
|
|
|
|
invalid token near '1e'
|
2009-07-27 03:44:11 +08:00
|
|
|
==== integer-starting-with-zero ====
|
2009-07-10 02:01:40 +08:00
|
|
|
[012]
|
|
|
|
====
|
|
|
|
1
|
|
|
|
invalid token near '0'
|
2009-07-27 03:44:11 +08:00
|
|
|
==== negative-integer-starting-with-zero ====
|
2009-07-10 02:01:40 +08:00
|
|
|
[-012]
|
|
|
|
====
|
|
|
|
1
|
|
|
|
invalid token near '-0'
|
2009-07-27 03:44:11 +08:00
|
|
|
==== invalid-identifier ====
|
2009-07-18 20:59:55 +08:00
|
|
|
[troo
|
|
|
|
====
|
|
|
|
1
|
|
|
|
invalid token near 'troo'
|
2009-07-27 03:44:11 +08:00
|
|
|
==== invalid-escap ====
|
2009-07-18 20:59:55 +08:00
|
|
|
["\a <-- invalid escape"]
|
|
|
|
====
|
|
|
|
1
|
|
|
|
invalid escape near '"\'
|
2009-07-27 03:44:11 +08:00
|
|
|
==== tab-character-in-string ====
|
2009-07-10 02:01:40 +08:00
|
|
|
[" <-- tab character"]
|
|
|
|
====
|
|
|
|
1
|
2009-07-14 04:34:31 +08:00
|
|
|
control character 0x9 near '"'
|
2009-07-27 03:44:11 +08:00
|
|
|
==== null-byte-in-string ====
|
2009-07-15 01:47:57 +08:00
|
|
|
["\u0000 (null byte not allowed)"]
|
|
|
|
====
|
|
|
|
1
|
|
|
|
\u0000 is not allowed
|
2009-07-27 03:44:11 +08:00
|
|
|
==== truncated-unicode-surrogate ====
|
2009-07-15 01:47:57 +08:00
|
|
|
["\uDADA (first surrogate without the second)"]
|
|
|
|
====
|
|
|
|
1
|
|
|
|
invalid Unicode '\uDADA'
|
2009-07-27 03:44:11 +08:00
|
|
|
==== invalid-second-surrogate ====
|
2009-07-15 01:47:57 +08:00
|
|
|
["\uD888\u3210 (first surrogate and invalid second surrogate)"]
|
|
|
|
====
|
|
|
|
1
|
|
|
|
invalid Unicode '\uD888\u3210'
|
2009-07-27 03:44:11 +08:00
|
|
|
==== lone-second-surrogate ====
|
2009-07-15 01:47:57 +08:00
|
|
|
["\uDFAA (second surrogate on it's own)"]
|
|
|
|
====
|
|
|
|
1
|
|
|
|
invalid Unicode '\uDFAA'
|
2009-07-27 03:44:11 +08:00
|
|
|
==== unicode-identifier ====
|
2009-07-18 20:59:55 +08:00
|
|
|
å
|
|
|
|
====
|
|
|
|
1
|
|
|
|
'[' or '{' expected near 'å'
|