Embercode
✕
Data Formats and TextQuick quiz

JSON checks

8 questions. Covers JSON: objects, arrays and parsing.

Questions 1 to 5 of 8

  1. 1. Which mistake makes this JSON invalid? ``json {"name": "Asha", "age": 21,} ``
  2. 2. What is wrong with this JSON? ``json {"ok": True} ``
  3. 3. Which part of this file breaks the JSON rules? ``json {"name": "Asha" // the student } ``
  4. 4. Which Python function reads a JSON string and returns data?
  5. 5. A file holds two objects side by side: {"a": 1} {"b": 2}. Python reports Extra data. What is the correct fix?

5 question(s) left on this page.