JSON – Definition

What is JSON?

  1. JavaScript Object Notation which serialize the objects and facilitate the communication between the layers especially in AJAX based web applications.
  2. The alternative for JSON is XML wrapped with SOAP.
  3. It is to overcome the disadvantages of passing XML data for communication between objects.

Why JSON?

    • Most web browsers cannot create, parse and manipulate XML data. That is the main reason for going to JSON. Also, JSON is lightweight and provides asynchronous calls with server and controls the full-page rendering.So, It is ideal to be used with AJAX based web applications.
    • XML by itself does not provide any of the type information instead it depend upon XSD (XML Schema Definition) whereas, JSON provides the scalar data type information with native array support and Object support.
    • Unlike XML, JSON does not require special code to parse the objects instead it makes use of JavaScript itself.
    • Comparing to XML, JSON is simpler and smaller in size which does not depend on too many other technologies like XSD, XSLT,etc
Advertisements

One response to “JSON – Definition

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s