Explain it in 60 seconds
JSON.parse and JSON.stringify
Frontend Engineering · JavaScript Core · Beginner
What do JSON.parse and JSON.stringify do, and what are their limitations?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- stringify: object → JSON string.
- parse: string → value.
- Loses functions, undefined, symbols; Dates become strings.
- Fails on circular references, BigInt.
- parse throws on invalid JSON.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.