All quizzes
Free quiz · 22 questions in the bank

JSON quiz

Test your JSON knowledge with a free interactive quiz — 22 questions with answers and explanations. No signup needed to play.

Question 1/12Score 0

Why should you avoid `eval()` to parse JSON in JavaScript?

In this round
  1. Why should you avoid `eval()` to parse JSON in JavaScript?
  2. What does `JSON.parse` throw when given malformed JSON?
  3. Is `{ "a": 1, "a": 2 }` valid JSON, and what typically happens?
  4. How are special characters like a double quote or newline represented inside a JSON string?
  5. What does JSON Schema provide?
  6. What does it mean that JSON is "language-independent"?
  7. What does `JSON.stringify(value)` do in JavaScript?
  8. How must object keys be written in JSON?
  9. What does JSON stand for?
  10. Are comments allowed in standard JSON?
  11. How does JSON represent the absence of a value?
  12. What is the standard MIME type for JSON in HTTP?
Gaps to close?
Read the curated JSON notes — core concepts, patterns, interview prep.
JSON notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web