mirror of
https://github.com/circlecell/jsonlint-mod.git
synced 2026-01-21 05:07:49 +08:00
Added a number of tests from JSON_checker's test suite here: http://json.org/JSON_checker/
This commit is contained in:
1
test/fails/1.json
Normal file
1
test/fails/1.json
Normal file
@@ -0,0 +1 @@
|
||||
"A JSON payload should be an object or array, not a string."
|
||||
1
test/fails/10.json
Normal file
1
test/fails/10.json
Normal file
@@ -0,0 +1 @@
|
||||
{"Extra value after close": true} "misplaced quoted value"
|
||||
1
test/fails/11.json
Normal file
1
test/fails/11.json
Normal file
@@ -0,0 +1 @@
|
||||
{"Illegal expression": 1 + 2}
|
||||
1
test/fails/12.json
Normal file
1
test/fails/12.json
Normal file
@@ -0,0 +1 @@
|
||||
{"Illegal invocation": alert()}
|
||||
1
test/fails/13.json
Normal file
1
test/fails/13.json
Normal file
@@ -0,0 +1 @@
|
||||
{"Numbers cannot have leading zeroes": 013}
|
||||
1
test/fails/14.json
Normal file
1
test/fails/14.json
Normal file
@@ -0,0 +1 @@
|
||||
{"Numbers cannot be hex": 0x14}
|
||||
1
test/fails/15.json
Normal file
1
test/fails/15.json
Normal file
@@ -0,0 +1 @@
|
||||
["Illegal backslash escape: \x15"]
|
||||
1
test/fails/16.json
Normal file
1
test/fails/16.json
Normal file
@@ -0,0 +1 @@
|
||||
[\naked]
|
||||
1
test/fails/17.json
Normal file
1
test/fails/17.json
Normal file
@@ -0,0 +1 @@
|
||||
["Illegal backslash escape: \017"]
|
||||
1
test/fails/18.json
Normal file
1
test/fails/18.json
Normal file
@@ -0,0 +1 @@
|
||||
[[[[[[[[[[[[[[[[[[[["Too deep"]]]]]]]]]]]]]]]]]]]]
|
||||
1
test/fails/19.json
Normal file
1
test/fails/19.json
Normal file
@@ -0,0 +1 @@
|
||||
{"Missing colon" null}
|
||||
1
test/fails/2.json
Normal file
1
test/fails/2.json
Normal file
@@ -0,0 +1 @@
|
||||
["Unclosed array"
|
||||
1
test/fails/20.json
Normal file
1
test/fails/20.json
Normal file
@@ -0,0 +1 @@
|
||||
{"Double colon":: null}
|
||||
1
test/fails/21.json
Normal file
1
test/fails/21.json
Normal file
@@ -0,0 +1 @@
|
||||
{"Comma instead of colon", null}
|
||||
1
test/fails/22.json
Normal file
1
test/fails/22.json
Normal file
@@ -0,0 +1 @@
|
||||
["Colon instead of comma": false]
|
||||
1
test/fails/23.json
Normal file
1
test/fails/23.json
Normal file
@@ -0,0 +1 @@
|
||||
["Bad value", truth]
|
||||
1
test/fails/24.json
Normal file
1
test/fails/24.json
Normal file
@@ -0,0 +1 @@
|
||||
['single quote']
|
||||
1
test/fails/25.json
Normal file
1
test/fails/25.json
Normal file
@@ -0,0 +1 @@
|
||||
[" tab character in string "]
|
||||
1
test/fails/26.json
Normal file
1
test/fails/26.json
Normal file
@@ -0,0 +1 @@
|
||||
["tab\ character\ in\ string\ "]
|
||||
2
test/fails/27.json
Normal file
2
test/fails/27.json
Normal file
@@ -0,0 +1,2 @@
|
||||
["line
|
||||
break"]
|
||||
2
test/fails/28.json
Normal file
2
test/fails/28.json
Normal file
@@ -0,0 +1,2 @@
|
||||
["line\
|
||||
break"]
|
||||
1
test/fails/29.json
Normal file
1
test/fails/29.json
Normal file
@@ -0,0 +1 @@
|
||||
[0e]
|
||||
1
test/fails/3.json
Normal file
1
test/fails/3.json
Normal file
@@ -0,0 +1 @@
|
||||
{unquoted_key: "keys must be quoted"}
|
||||
1
test/fails/30.json
Normal file
1
test/fails/30.json
Normal file
@@ -0,0 +1 @@
|
||||
[0e+]
|
||||
1
test/fails/31.json
Normal file
1
test/fails/31.json
Normal file
@@ -0,0 +1 @@
|
||||
[0e+-1]
|
||||
1
test/fails/32.json
Normal file
1
test/fails/32.json
Normal file
@@ -0,0 +1 @@
|
||||
{"Comma instead if closing brace": true,
|
||||
1
test/fails/33.json
Normal file
1
test/fails/33.json
Normal file
@@ -0,0 +1 @@
|
||||
["mismatch"}
|
||||
1
test/fails/4.json
Normal file
1
test/fails/4.json
Normal file
@@ -0,0 +1 @@
|
||||
["extra comma",]
|
||||
1
test/fails/5.json
Normal file
1
test/fails/5.json
Normal file
@@ -0,0 +1 @@
|
||||
["double extra comma",,]
|
||||
1
test/fails/6.json
Normal file
1
test/fails/6.json
Normal file
@@ -0,0 +1 @@
|
||||
[ , "<-- missing value"]
|
||||
1
test/fails/7.json
Normal file
1
test/fails/7.json
Normal file
@@ -0,0 +1 @@
|
||||
["Comma after the close"],
|
||||
1
test/fails/8.json
Normal file
1
test/fails/8.json
Normal file
@@ -0,0 +1 @@
|
||||
["Extra close"]]
|
||||
1
test/fails/9.json
Normal file
1
test/fails/9.json
Normal file
@@ -0,0 +1 @@
|
||||
{"Extra comma": true,}
|
||||
Reference in New Issue
Block a user