JSON Question:
Download Questions PDF

Explain Syntax of JSON using JavaScript?

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 Interview Questions And Answers PDF

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