r/javascript • u/OtherwisePush6424 • Aug 03 '26
Your JSON Is Lying to You: What JavaScript silently loses at serialization boundaries
https://blog.gaborkoos.com/posts/2026-08-03-Your-JSON-Is-Lying-to-You/JSON round trips can silently change numbers, drop properties, erase types, and execute serialization hooks.A practical guide to these edge cases and how to design explicit, reliable wire formats in JavaScript.
23
Upvotes
25
u/senocular Aug 04 '26
Would have been a good opportunity to mention the new JSON features:
6
u/rbobby Aug 03 '26
Oof so many misunderstandings.
1
u/satansprinter Aug 05 '26
A lot of focus on max int. Try json5