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
{
"name" : "Numeric Corruption Repro",
"value" : 9223372036854775807,
"detail" : "Int64.MaxValue by the way..."
}
As soon as you enter the value, it is oddly changed to:
{
"name" : "Numeric Corruption Repro",
"value" : 9223372036854776000,
"detail" : "Int64.MaxValue by the way..."
}
This makes sense only when you know about the way numbers are stored in JavaScript, but should not corrupt the data the user is trying to save. Numeric values should probably be stored internally as strings rather than the limited storage type internally used by JavaScript, to avoid this kind of thing.
The text was updated successfully, but these errors were encountered:
Yes that's indeed a good point. I made a start with it long time ago but so far didn't implement it in JSONEditor, see #231. Let's continue any discussion in #231.
Repro:
Create a simple JSON structure like so:
As soon as you enter the value, it is oddly changed to:
This makes sense only when you know about the way numbers are stored in JavaScript, but should not corrupt the data the user is trying to save. Numeric values should probably be stored internally as strings rather than the limited storage type internally used by JavaScript, to avoid this kind of thing.
The text was updated successfully, but these errors were encountered: