This sanity check keeps demjson from correctly parsing {あ:2}. When I simply disable it, the parse is successful. Unicode identifiers are valid ECMAScript, and most definitely not gibberish, so demjson should probably not throw when the data starts with {あ.
Seems better to skip this sanity check and let the parse fail in another way if the data really is invalid.
This sanity check keeps demjson from correctly parsing
{あ:2}. When I simply disable it, the parse is successful. Unicode identifiers are valid ECMAScript, and most definitely not gibberish, so demjson should probably not throw when the data starts with{あ.Seems better to skip this sanity check and let the parse fail in another way if the data really is invalid.