is JSON an obejct code example
Example 1: json example
{ "name":"John", "age":30, "car":null }
Example 2: create a json object in javascript
var employee = {
"firstName": firstName,
"lastName": lastName
}
{ "name":"John", "age":30, "car":null }
var employee = {
"firstName": firstName,
"lastName": lastName
}