Posts

Showing posts with the label java script

JSON - The New Data Interchange Format For Web Services

What is JSON ? JSON ( Javascript Object Notation) is a plain - text format for data storage. It has become quite popular as a data interchange format for web services, for configuration files and more. Features of JSON are, it is easy to read for humans and easy to parse by machines when compared to XML. JSON stores data as plain text. Its grammar is subset of the grammar of java script expressions. How to write a simple JSON object ? Writing a JSON object is very simple. All the members of JSON are nothing but name, value pairs. Its some what simillar to Hash Map of Java language. Just begin with a '{' and all the name, value pairs will be seperated by ',' & name , value are seperated by ':'. Here is an example. {      "First Name" : "speaking" ,      "Last Name" : "cs",      "Type"  : "Blog",      "Domain" : "www.speakingcs.com" } You can save a JSON object...