r/json • • Aug 03 '26

Your JSON Is Lying to You: What JavaScript 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.

3 Upvotes

2 comments sorted by

3

u/-goldenboi69- Aug 03 '26

Tl;dr. Use strings instead of too large numbers.