News for hackers. Stuff that matters.
Re:What even is a JSON number? by yawaramin on Monday April 08, 2024 @11:49PM (#39976063)
The only problem with this attitude is that JSON APIs are meant to be interoperable, and as the OP showed, you can't rely on the systems you interoperate with to uniformly have the same understanding of JSON numbers, and misinterpreting numbers because of system incompatibilities will cause some really bad headaches that are totally avoidable by just forcing everyone to interop in terms of decimal numbers encoded as strings.

There are no comments on this comment yet.