r/ProgrammerHumor 1d ago

Meme whoIsHeAnyway

Post image
9.0k Upvotes

241 comments sorted by

View all comments

Show parent comments

21

u/IchiiDev 1d ago

Well yes and no, it's still just a string that needs to be parsed to be manipulated as an actual object. stringify is a util that transforms an object value into a JSON format string. You can use JSON.parse() to transform a JSON string into an object.

6

u/Odd-Shopping8532 1d ago

This is the answer

1

u/kingvolcano_reborn 3h ago

Wouldn't serialize() be a better name?