Closed Tinister closed 5 years ago
I get {"01":"Foo","id":"Foo"}
when I run your code. What version of Jurassic are you using?
2.2.2 running on framework 4.7.2
Likely this issue was fixed after that release. I'll look into doing a v2.2.3/v3.0 release ASAP.
I just published a Nuget package for v3.0, can you try it and let me know if it solves your problem?
Works great. Thanks for the extremely prompt turnaround.
returns
{"id":"Foo"}
(skips "01" key)Keys that are numbers that don't start with 0 ("11") or alphanumeric keys that start with 0 ("0S") seem to work.
I understand that JSON properties such as "01" can be a code smell (i.e.
o[1]
won't work), but with this particular script it is enforcing padded strings for the hash lookups.