bhall2001 / fastjson

A Livecode library for JSON encoding and decoding to and from Arrays.
MIT License
17 stars 11 forks source link

embedded NULLs are end-of-text #21

Closed mwieder closed 8 years ago

mwieder commented 8 years ago

Here's another anomaly I ran into: if there are embedded NULLs in a string (the printersettings is what tripped me up) then the tokenizer treats them as end-of-text chars and stops processing. This patch converts the nulls on the way in and then converts them back in the jsonDecode routine.