JSON Question:

Explain Syntax of JSON using JavaScript?

Tweet Share WhatsApp

Answer:

Because JSON uses JavaScript syntax, no extra software is needed to work with JSON within JavaScript.

With JavaScript you can create an array of objects and assign data to it like this:

JSON CODE
{
"studeents": [
{ "firstName":"Ali" , "lastName":"Khan" },
{ "firstName":"John" , "lastName":"Sena" },
{ "firstName":"Kate" , "lastName":"Winslet" }
]
}

Download JSON PDF Read All 12 JSON Questions
Previous QuestionNext Question
Explain JSON Arrays?What is JSON file type?