This repository was archived by the owner on Apr 4, 2025. It is now read-only.
[BUG-6466] Numbers expressed in scientific notation and include a plus sign in the exponent are not parsed as json numbers by LSL #14324
Labels
Steps to Reproduce
Create this script:
Then replace 1.0e+1 with 1.0e1 and rerun it again.
Actual Behavior
Output with 1.0e+1 is:
And with 1.0e1 is:
Expected Behavior
Output with 1.0e+1 should be instead:
Output with 1.0e1 is correct.
Other information
A + sign in an exponent is perfectly valid JSON as per http://json.org/number.gif
Functions affected are the four in the script: llJsonValueType, llJsonGetValue, llJsonSetValue, llJson2List.
llList2Json is not affected because of the weird behavior that BUG-6284 claims to be valid.
Links
Related
Original Jira Fields
The text was updated successfully, but these errors were encountered: