RFC Errata


Errata Search

 
Source of RFC  
Summary Table Full Records

RFC 8259, "The JavaScript Object Notation (JSON) Data Interchange Format", December 2017

Source of RFC: jsonbis (art)

Errata ID: 5355
Status: Reported
Type: Technical

Reported By: Anders Rundgren
Date Reported: 2018-05-10

Section 6 says:

Note that when such software is used, numbers that are integers and
are in the range [-(2**53)+1, (2**53)-1] are interoperable in the
sense that implementations will agree exactly on their numeric
values.

It should say:

Note that when such software is used, numbers that are integers and
are in the range [-(2**53), (2**53)] are interoperable in the
sense that implementations will agree exactly on their numeric
values.

Notes:

The limit is presumably derived from ECMAScript which says:

"The value of Number.MAX_SAFE_INTEGER is the largest integer n such that n and n + 1 are both exactly representable as a Number value"

However, Number.MAX_SAFE_INTEGER is 9007199254740991 ((2*53)-1) making n+1 (2**53) the largest exactly representable Number value

Report New Errata