Annotation of parser3/tests/311.html, revision 1.2
1.1 moko 1: @main[]
2:
3: $08[^taint[ ]]
4: $0A[^taint[^#0A]]
5: $t[^table::create{json
6: ^invalid_json[]}]
7:
8: ^taint[as-is][
9: ^t.menu{^try-catch{$v[^json:parse[^taint[as-is][$t.json]]]}}
10: ]
11:
12: @invalid_json[]
13: ${0A}"A JSON payload should be an object or array, not a string....."
14: ["Unclosed array"
15: ["Empty error message"${0A}
16: {unquoted_key: "keys must be quoted"}
17: ${08}["extra comma"${08},${08}]
18: ["double extra comma",,]
19: [ , "<-- missing value"]
20: ["Comma after the close"],
21: ["Extra close"]]
22: [${0A}{"Extra comma": true,}]
23: {"Extra value after close": true} "misplaced quoted value"
24: {"Illegal expression": 1 + 2}
25: {"Illegal invocation": alert()}
26: {"Numbers cannot have leading zeroes": 013}
27: {"Numbers cannot be hex": 0x14}
28: ["Illegal backslash escape: \x15"]
29: [\naked]
30: ["Illegal backslash escape: \017"]
31: [[[[[[${0A}[[[[[[[${0A}[[[[["Too deep"]]]]]]]]]]]]]]]]]]]]
32: {"Missing colon" null}
33: {"Double colon":: null}
34: {"Comma instead of colon", null}
35: ["Colon instead of comma": false]
36: ["Bad value", truth]
1.2 ! moko 37: ["Русские длинные буквы", truth]
1.1 moko 38: ['single quote']
39: ["${08}tab${08}character${08}in${08}very-very-very${08}long${08}string${08}"]
40: ["tab\ character\ in\ string\ "]
41: ["line${0A}break"]
42: ["line\${0A}break"]
43: [0e]
44: [0e+]
45: [0e+-1]
46: {"Comma instead if closing brace": true,
47: ["mismatch"}
E-mail: