What is JSON? And how to use it on the website

access_time
hourglass_empty

JSON (JavaScript Object Notation) is a format to store and exchange information that humans can read. File contains only text and uses the extension .json.

In this article, you will learn what JSON is and how it works, as well as how it improves website performance.

What is JSON and what is it used for?

JSON is a structured information storage format and is mainly used to transfer data between server and client.

Basic file is a simpler and lighter alternative for XML (Extensible Markup Language) has the same function.

Developers use JSON to work with AJAX (Asynchronous JavaScript and XML). These formats work well together to compress asynchronous loading data, meaning the website can update information without refreshing the page.

This process is easier to do with JSON than XML / RSS. And today, when many websites are applying AJAX, files .json has become very popular.

Moreover, it allows users to request data from domain different from the so-called method JSONP by applying tags