gudii9
asked on
json format text only
Hi,
I am reading about json at below url
http://www.w3schools.com/json/
I have not understood below statement
* JSON uses JavaScript syntax, but the JSON format is text only, just like XML.
what it mean by json format is text like XML.
is XML is text only. json format text means what? we cannot use numbers?
please advise
I am reading about json at below url
http://www.w3schools.com/json/
I have not understood below statement
* JSON uses JavaScript syntax, but the JSON format is text only, just like XML.
what it mean by json format is text like XML.
is XML is text only. json format text means what? we cannot use numbers?
please advise
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
There is no advantage. It is done to simplify things, since in Javascript the "field name" can be a number or a boolean value. Also note that you must always use double quotes and not single quotes, which are allowed in javascript.
https://en.wikipedia.org/wiki/JSON
https://en.wikipedia.org/wiki/JSON
ASKER
i see.
what is the advantage of json key name text formatting like textual i,e ""
please advise