define json property javascript code example
Example 1: js create json from object
JSON.stringify(the_data);
Example 2: json object
var myObj, x;
myObj = {"name":"John", "age":30, "car":null};
x = myObj.name;
document.getElementById("demo").innerHTML = x;