-
Type:
Improvement
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: V4.0_WD01
-
Fix Version/s: V4.0_WD01
-
Component/s: JSON Format
-
Labels:None
-
Environment:
[Applied]
-
Proposal:
-
Resolution:
The current JSON Format specification requires all Int64 numbers to be represented as strings because of the limitation of numbers in JavaScript were these numbers get stored as 64-bit binary format IEEE values and therefore lose precision past 15 digits. However numbers up to that point could still be represented as numbers.
Field | Original Value | New Value |
---|---|---|
Component/s | OData JSON Format [ 10272 ] |
Fix Version/s | V4.0_WD01 [ 10247 ] | |
Proposal | Allow Int64 numbers to be represented as numbers in JSON as long as they don't lose precision and only require them to be represented as strings if precision would dictate so. |
Change the default serialization of number (Int64 and Decimal particularly) as numbers in JSON. Add support for the 'IEEE754Compatible' format parameter to the application/json format and require that the producer MUST serialize Int64 and Decimal numbers as strings if this format parameter has been specified. |
Affects Version/s | V4.0_WD01 [ 10247 ] |
Environment | [Proposed] | [Applied] |
Status | New [ 10000 ] | Open [ 1 ] |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Resolved [ 5 ] |
Status | Resolved [ 5 ] | Applied [ 10002 ] |
Resolution |
Accepted: https://www.oasis-open.org/committees/download.php/49055/odata-meeting-35_on-20130502-minutes.html#odata-342 |
|
Status | Applied [ 10002 ] | Closed [ 6 ] |