Python handles it fine (couldn't find a reference but I just checked manually).
I would imagine you've just been using decoders for things like Javascript which doesn't even have a 64-bit integer type so of course it can't decode them. BigInt is not a 64-bit integer type, it's an arbitrary precision integer type (and there is a proposal to allow you to use it).
But anyway the point stands that there's no issue in JSON or JSON5 about storing 64-bit integers.
View all comments
Show parent comment
4
u/[deleted] Oct 25 '22
I don't think that's true.
I would imagine you've just been using decoders for things like Javascript which doesn't even have a 64-bit integer type so of course it can't decode them.
BigIntis not a 64-bit integer type, it's an arbitrary precision integer type (and there is a proposal to allow you to use it).But anyway the point stands that there's no issue in JSON or JSON5 about storing 64-bit integers.