Page MenuHomeFeedback Tracker

Experimental: New Json API don't parse correctly float
Closed, ResolvedPublic

Description

Hello,

When parsing float, it's printing me inf instead of the float value.

Details

Severity
Major
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Scripting
Steps To Reproduce

This is the code I use :

if (!GetJsonApi())
    CreateJsonApi();

JsonApiStruct json = new JsonApiStruct;
json.ExpandFromRAW("{\"TestFloat\": 45.2}");

After executing it the result inside the script log is:

SCRIPT : OnObject:
SCRIPT : OnFloat: inf

It should be :

SCRIPT : OnObject:
SCRIPT : OnFloat: 45.2

Event Timeline

NiiRoZz created this task.Jun 5 2020, 10:59 PM
Unknown Object (User) added a subscriber: Unknown Object (User).Jun 5 2020, 11:00 PM
NiiRoZz changed Category from General to Scripting.Jun 6 2020, 12:23 PM
Geez closed this task as Resolved.Jul 3 2020, 3:15 PM
Geez claimed this task.
Geez added a subscriber: Geez.

Thank you for the report NiiRoZz.
The issue has been fixed internally and will be fixed in the upcoming update to the stable branch.
Regards,
Geez