1.

Explain What Is Json?

Answer»

JSON is a very lightweight data format based on a SUBSET of the JAVASCRIPT syntax, namely array and object literals. JSON allows communicating with server in a STANDARD way. JSON is used as COMMUNICATION notation instead of XML.

Hide Copy Code

var oBike = 
{
"color" : "Green",
"Speed": 200,
};

alert(oBike.color); //outputs "Green"

alert(oBike.Speed); //outputs 200

The above code creates an javascript object bike with two properties Color and Speed.

JSON is a very lightweight data format based on a subset of the JavaScript syntax, namely array and object literals. JSON allows communicating with server in a standard way. JSON is used as communication notation instead of XML.

Hide Copy Code

var oBike = 
{
"color" : "Green",
"Speed": 200,
};

alert(oBike.color); //outputs "Green"

alert(oBike.Speed); //outputs 200

The above code creates an javascript object bike with two properties Color and Speed.



Discussion

No Comment Found