3 Questions
Which of the following is an incorrect JSON syntax?
{ "name": 'John', "age": 30 }
Which of the following is a valid JSON array declaration?
[1, 2, 3, 4]
What is the correct way to represent a null value in JSON?
null
Study Notes
JSON Syntax
-
undef
andnan
are not valid JSON syntax. -
null
is the correct way to represent a null value in JSON.
JSON Array Declaration
- A valid JSON array declaration starts with
[
and ends with]
, and elements are separated by commas, like this:[element1, element2, ..., elementN]
.
Test your syntax knowledge with this quiz that challenges you to identify incorrect syntax among given options.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free