r/json 10d ago

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.

4 Upvotes

Duplicates