Explain JSON Syntax using JavaScript?

Last updated:9/22/2020 12:47:55 PM

1 Answers

AVADHESH PATEL
AVADHESH PATEL

JSON is smaller than XML, and faster and easier to parse. Below is a basic syntax of JSON

JSON CODE
{
'student':[
{'firstName':'Samuel','lastName':'Fernandes'},
{'firstName':'Takeshi','lastName':'Okada'},
{'firstName':'Jacob','lastName':'Rasel'}
]
}

Answer