-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Greetings,
I'm seeing the JSON parser fail when encountering a field with a FLOAT type? For example, this works fine
const data = "{\"code\":\"EUR\",\"alphaCode\":\"EUR\",\"numericCode\":\"978\",\"name\":\"Euro\",\"rate\": \"0.92365973383771\"}";
but this does not:
const data = "{\"code\":\"EUR\",\"alphaCode\":\"EUR\",\"numericCode\":\"978\",\"name\":\"Euro\",\"rate\": 0.92365973383771}";
The 2nd example has a FLOAT type field for "rate" (the first example would be a string because its text-qualified)
When I run standard code like let t = JSON.fromText(data, null); it throws an error for the 2nd case which is
#err("Failed to parse JSON text")
Do you think its a problem with the Float type? I could change my webservice to force text-qualify all fields as a work-around but I figured i'd report this potential issue to see if you were aware of it. Thank you.