json objects

JavaScript
var myObj, x;
myObj = {"name":"John", "age":30, "car":null};
x = myObj.name;
document.getElementById("demo").innerHTML = x;{ "name":"John", "age":30, "car":null }
Source

Also in JavaScript: