➤It is a syntax for storing and exchanging data.
➤JSON is text, written with JavaScript object notation al with in inverted commas.
➤JSON is "self-describing" and easy to understand. It is language independent.It format is text only.
➤Easily be sent to and from a server.Used as a data format by any programming language.
➤There are two ways to represent data
➣Stringyfy: It converts the Javascript data into string form.
var myObj = { "name:" "John", "age:" 31, "city:" "New York" };
➣Phase: It converts stringy form to normal javascript format.
'var myObj = { "name:" "John", "age:" 31, "city:" "New York" };'
No comments:
Post a Comment