688
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 12 Aug 2026
688 points (97.9% liked)
Programmer Humor
32743 readers
1110 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 3 years ago
MODERATORS
Not sure every software engineer needs to know this. If they'd said web developer I suppose this would really be expected knowledge, but then you'd probably want to shoot them anyway.
Web developer, or business developer. A lot of inter-system communications these days is in JSON, whether there is any JavaScript involved or not.
honestly, this is used for debugging. Why not just pass the object as value to the console.log()
Stringify is used to serialize an object. This is useful if you are going to store the object or transfer the object contents to some other system or component, possibly over a network using a network protocol.
For debugging, you should use a function like console.log, which depending on the client might even offer an interactive UI to explore the object with structurally aware context. Not just print a giant string, which you get from stringify.
Stringify is used to serialize an object poorly
stringify is used to serialize an object good enough in the large majority of cases because we have far more poorly implemented hacks to work around
Not only used for debugging and also if you log a complex object, the way it gets displayed in the console is not always easy/possible to fully inspect. It will get.. truncated for lack of a better word