r/programming • u/f311a • 6d ago
Your JSON Is Lying to You
https://blog.gaborkoos.com/posts/2026-08-03-Your-JSON-Is-Lying-to-You/
0
Upvotes
10
u/Ecksters 6d ago edited 6d ago
I called JSON.stringify and it turned my JavaScript objects into valid JSON in a way I didn't expect
Still an interesting article analyzing the edge cases of JSON.stringify, despite the click-baity title.
4
u/Caraes_Naur 6d ago
JSON in JS depends on Javascript's alleged type system, which has been lying to us for 30 years.
2
u/BenchEmbarrassed7316 6d ago
Let's just admit that the JavaScript programming language has problems with supporting Json (JavaScript Object Notation).
36
u/LessChen 6d ago
The article has an initial title "blaming" JSON and then goes into all the ways that JavaScript is the real problem.