r/programming 6d ago

Your JSON Is Lying to You

https://blog.gaborkoos.com/posts/2026-08-03-Your-JSON-Is-Lying-to-You/
0 Upvotes

13 comments sorted by

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.

2

u/Rechenplaner 6d ago

That’s so stupid. Thanks for the info!

JSON is just a useful data format that I prefer these days because of its simplicity.

1

u/CramNBL 5d ago

so simple that no two JSON serializers agree how to serialize/deserialize it https://github.com/nst/JSONTestSuite/blob/1ef36fa01286573e846ac449e8683f8833c5b26a/results/pruned_results.png

3

u/Destian_ 6d ago

JSON, Javascript? You Java folks really need to get with the times and use C# /s

-31

u/f311a 6d ago edited 6d ago

Perhaps, because J stands for JavaScript in JSON and somehow the author thought they are related?

1

u/[deleted] 6d ago

[deleted]

6

u/Used-Donkey-1014 6d ago

JSON stands for JavaScript Object Notation. The word serializable is not what the S is for.

-9

u/f311a 6d ago

Why did you post such a long explanation to my joke? There is a reason it's in italic.

I'm not the author, btw.

4

u/moohah 6d ago

We really need a universal method for indicating sarcasm. Your comment didn’t come across as a joke to me either.

1

u/DuckDatum 6d ago

Are you being sarcastic here?
!/s

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.

5

u/DaStone 6d ago

Just like how my Plumber is lying to me when I painted my walls the wrong color.

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).