What is JSON? Why we use JSON over XML?

Let’s discuss about JSON that why we use JSON and what is the importance of JSON in Web Development. How can It help us to get data from such an easy format. how can we easily develop a whole website and feed data from JSON. so let’s dig it out…

What is JSON?

JSON stands for JavaScript Object Notation.


It is a very common data format used for asynchronous browser-server communication, including as a replacement for XML in some AJAX-style systems.
JSON grew out of a need for stateful, real-time server-to-browser communication protocol without using browser plugins such as Flash or Java applets, the dominant methods used in the early 2000s.

What is IT?

JSON is a textual, language-independent data-exchange format, much like XML, CSV or YAML.

Rules of JSON

  • Most widely used for APIs- Best for data exchange
  • Most APIs are JSON with some JSON only.
  • Works seamlessly with server side languages as well as frontend coding
  • Most programming languages can be used with JSON.
  • NoSQL databases like MongoDB use JSON formats.
  • Works well with AJAX which is a common format for retrieving data.
  • JSON is a open, text-based, light-weight data interchange.

Features of JSON

  • Easy to Read- Text Based, ordered list of values
  • Language independent – Works across languages
  • Light Weight – Load quickly
  • Scalable – Expand and add more data

Example of JSON format

	"firstName" : "Chandan",
	"lastName": "Kumar",
	"isAlive": true,
	"age": 26,
		"streetAddress": "2nd Avenue",
		"city": "New York",
		"state": "NY",
		"postalCode": "10021-3100"


Chandan Kumar
Follow Me: