mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 22:02:27 +00:00
Make JSON parser nearly perfectly compliant (#483)
This commit is contained in:
parent
1d490fcb94
commit
0cea6c560f
5 changed files with 30 additions and 31 deletions
|
@ -177,3 +177,9 @@ break"]
|
|||
-- https://www.json.org/JSON_checker/test.zip
|
||||
-- JSON parsing sample test case: fail15.json
|
||||
assert(not DecodeJson(' ["Illegal backslash escape: \x15"] '))
|
||||
|
||||
-- https://www.json.org/JSON_checker/test.zip
|
||||
-- JSON parsing sample test case: fail19.json
|
||||
assert(not DecodeJson([[
|
||||
{"Missing colon" null}
|
||||
]]))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue