Saturday, November 12, 2011

JSON: Will JSON Replace XML?

JavaScript Object Notation (JSON) is a technique for passing structured data across processes in the form of a string. This technique results in the ability to pass JSON data across network protocols that prefer string traffic, such as HTTP.

Data can be serialized into a JSON string much the same as XML. The key difference is that JSON uses a serialization technique that results in much smaller strings than XML.

JSON has also been a popular implementation for using RESTful applications. It allows easy communication of objects from a client to/from a web server. Using JSON you can cause a web application to perform work or manipulate data. You can also receive results back from a REST application in the form of JSON object notation.

Like XML, JSON can also be a complex object. It can contain collections in the form of an array. It can have complex data types consisting of multiple public properties, etc.


No comments :

Post a Comment