adds loose_unicode option which replaces badly formed unicode (escaped non-characters and restricted codepoints, as well as partial surrogates) with u+fffd instead of throwing an error
This commit is contained in:
parent
51d27bb3b5
commit
653205501c
15 changed files with 121 additions and 10 deletions
3
test/cases/noncharacter.test
Normal file
3
test/cases/noncharacter.test
Normal file
|
@ -0,0 +1,3 @@
|
|||
{name, "noncharacter"}.
|
||||
{jsx, {error, badjson}}.
|
||||
{json, "noncharacter.json"}.
|
Loading…
Add table
Add a link
Reference in a new issue