Convert JavaScript objects to JSON strings (stringify) or JSON strings to objects (parse)
{name: 'John', age: 30} → {"name":"John","age":30}{"name":"John","age":30} → {name: 'John', age: 30}Stringify
{name: 'Ada', active: true} → {"name":"Ada","active":true}
Parse
{"name":"Ada","active":true} → {name: "Ada", active: true}
Why did parsing fail?
Common reasons: missing quotes around keys, trailing commas, or single quotes in JSON.
Is my input sent to a server?
No. Parsing/stringifying happens entirely in your browser.
Can I trust eval?
We wrap objects in parentheses and run in-browser; still, only paste trusted code.