You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I want to export or read json number exceeding int, valueint will be overflow. How can I do with this?
Another advice:
typedefstructcJSON
{
/* next/prev allow you to walk array/object chains. Alternatively, use GetArraySize/GetArrayItem/GetObjectItem */structcJSON*next;
structcJSON*prev;
/* An array or object item will have a child pointer pointing to a chain of the items in the array/object. */structcJSON*child;
/* The type of the item, as above. */inttype;
/* The item's string, if type==cJSON_String */char*valuestring;
/* The item's number, if type==cJSON_Number */intvalueint;
/* The item's number, if type==cJSON_Number */doublevaluedouble;
/* The item's name string, if this item is the child of, or is in the list of subitems of an object. */char*string;
} cJSON;
And I think "valuestring,valueint,valuedouble" can be in one union.
The text was updated successfully, but these errors were encountered:
Use valuedouble, then you get 53 bits of integer precision on most platforms. You're not the first to suggest the use of a union, changing the cJSON struct is not possible for the current version though, because of compatibility reasons. Version 2 will fix this, see #63.
There's currently no estimated release date of version 2 though.
If I want to export or read json number exceeding int, valueint will be overflow. How can I do with this?
Another advice:
And I think "valuestring,valueint,valuedouble" can be in one union.
The text was updated successfully, but these errors were encountered: