Question 1 of 20
JavaScript JSON and Structured Data Quiz
Check your understanding of JSON parsing, serialization, data limits, transformation hooks, and durable contracts.
Knowledge check
JavaScript JSON and Structured Data Quiz
Check your understanding of JSON parsing, serialization, data limits, transformation hooks, and durable contracts.
- Stuck? Each question has an optional hint.
- Skip a hard question and review it before your results.
- Questions and answer options can shuffle between attempts.
You can retake this quiz whenever you like.
Question 2 of 20
What does JSON.parse do?
Question 3 of 20
What happens when JSON.parse receives malformed JSON?
Question 4 of 20
What does JSON.stringify normally return for a serializable object?
Question 5 of 20
What happens to an undefined object property during JSON.stringify?
Question 6 of 20
What happens to undefined inside an array during JSON.stringify?
Question 7 of 20
What is the main concern with very large JSON integers in JavaScript?
Question 8 of 20
What can a JSON.stringify replacer function do?
Question 9 of 20
What can a JSON.parse reviver do?
Question 10 of 20
What does toJSON provide?
Question 11 of 20
For duplicate object names in JSON.parse, what happens?
Question 12 of 20
Does valid JSON guarantee an application-specific shape?
Question 13 of 20
What does a JSON round trip preserve?
Question 14 of 20
What does the space argument of JSON.stringify control?
Question 15 of 20
Which sequence models a normal JSON boundary?
Question 16 of 20
Why is {name:"Ada"} not JSON text?
Question 17 of 20
What does JSON.isRawJSON(obj) determine?
Question 18 of 20
What should JSON.isRawJSON(JSON.rawJSON("42")) return when both methods are available?
Question 19 of 20
Is JSON.isRawJSON a general JSON validator?
Question 20 of 20
What can distinguish a raw-JSON object from an ordinary lookalike with a rawJSON property?
Quiz results
Review
-
Which is a JSON value?Hint used
-
What does JSON.parse do?Hint used
-
What happens when JSON.parse receives malformed JSON?Hint used
-
What does JSON.stringify normally return for a serializable object?Hint used
-
What happens to an undefined object property during JSON.stringify?Hint used
-
What happens to undefined inside an array during JSON.stringify?Hint used
-
What is the main concern with very large JSON integers in JavaScript?Hint used
-
What can a JSON.stringify replacer function do?Hint used
-
What can a JSON.parse reviver do?Hint used
-
What does toJSON provide?Hint used
-
For duplicate object names in JSON.parse, what happens?Hint used
-
Does valid JSON guarantee an application-specific shape?Hint used
-
What does a JSON round trip preserve?Hint used
-
What does the space argument of JSON.stringify control?Hint used
-
Which sequence models a normal JSON boundary?Hint used
-
Why is {name:"Ada"} not JSON text?Hint used
-
What does JSON.isRawJSON(obj) determine?Hint used
-
What should JSON.isRawJSON(JSON.rawJSON("42")) return when both methods are available?Hint used
-
Is JSON.isRawJSON a general JSON validator?Hint used
-
What can distinguish a raw-JSON object from an ordinary lookalike with a rawJSON property?Hint used