example of json object
Example 1: json example
{ "name":"John", "age":30, "car":null }
Example 2: json object
var myObj, x;
myObj = {"name":"John", "age":30, "car":null};
x = myObj.name;
document.getElementById("demo").innerHTML = x;
{ "name":"John", "age":30, "car":null }
var myObj, x;
myObj = {"name":"John", "age":30, "car":null};
x = myObj.name;
document.getElementById("demo").innerHTML = x;