Anders Rundgren (2018-07-27T05:57:21.000Z)
anders.rundgren.net at gmail.com (2018-07-27T13:03:31.347Z)
Thanx T.J. With your suggestion there are now not less than FIVE proposals on the table for dealing with BigInt JSON serialization: - \* RFC8259: `123456789123456789123456789` - ES6 enhanced: `123456789123456789123456789n` - Typed: `"/BigInt(123456789123456789123456789)/"` - \* Adaptive: `"123456789123456789123456789"` respectively `123456789` - \* Conservative: `"123456789123456789123456789"` Maybe Carsten Bormann after all is right, it is time to jump the JSON ship! Before the industry takes the leap to CBOR, I personally stick to the conservative path because it appears to be compatible ("usable" is maybe a better word) with just about everything out there. I wouldn't completely ignore the fact that XML did just fine without any explicit type information at all. OpenAPI addresses this for Date to take an example. They are though still grappling with BigInt :-) Cheers, Anders \* Denotes implemented/in use
anders.rundgren.net at gmail.com (2018-07-27T13:01:33.485Z)
Thanx T.J. With your suggestion there are now not less than FIVE proposals on the table for dealing with BigInt JSON serialization: - \* RFC8259: 123456789123456789123456789 - ES6 enhanced: 123456789123456789123456789n - Typed: "/BigInt(123456789123456789123456789)/" - \* Adaptive: "123456789123456789123456789" respectively 123456789 - \* Conservative: "123456789123456789123456789" Maybe Carsten Bormann after all is right, it is time to jump the JSON ship! Before the industry takes the leap to CBOR, I personally stick to the conservative path because it appears to be compatible ("usable" is maybe a better word) with just about everything out there. I wouldn't completely ignore the fact that XML did just fine without any explicit type information at all. OpenAPI addresses this for Date to take an example. They are though still grappling with BigInt :-) Cheers, Anders \* Denotes implemented/in use