I understand we should use JSON string to represent large integer and decimal.
If I want to represent integer range from 1 to 1000, is it safe to use JSON Integer and reliable across different platforms?
I understand we should use JSON string to represent large integer and decimal.
If I want to represent integer range from 1 to 1000, is it safe to use JSON Integer and reliable across different platforms?
I think, yes, its safe to assume that it will be reliable across different platforms.
Refer JSON.ORG standard and one of similar/duplicate question.
I understand we should use JSON string to represent large integer and decimal.
The RFC 8259, one of the documents that define the JSON format, says nothing about it. If the value is a number, represent it as a number.
However such document allows implementations to set limits on the range and precision of numbers accepted.
If I want to represent integer range from 1 to 1000, is it safe to use JSON Integer and reliable across different platforms?
Of course.