Fix JSON parser decoding for ASCII in strings

The JSON standard rejects all un-escaped, un-printable characters EXCEPT
for the delete character (ID 127, i.e. 0x7F).

See: https://www.crockford.com/mckeeman.html
Via: https://www.json.org/json-en.html
This commit is contained in:
Alex Shelkovnykov 2021-09-21 05:44:13 -07:00
parent 2580dfbce3
commit e4ddd6994c

View File

@ -4417,7 +4417,7 @@
;~(plug dot (plus nud))
:: :: ++jcha:de-json:html
++ jcha :: string character
;~(pose ;~(less doq bas prn) esca)
;~(pose ;~(less doq bas (shim 32 255)) esca)
:: :: ++mayb:de-json:html
++ mayb :: optional
|*(bus=rule ;~(pose bus (easy ~)))