JSON Question:

Explain Syntax of JSON using JavaScript?

JSON Interview Question
JSON Interview Question

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" }
]
}


Previous QuestionNext Question
Explain JSON Arrays?What is JSON file type?