What Is JSON❓

And why 99% of the companies use JSON for exchanging the data

Prem Singh Rathore
2 min readAug 24, 2021
Image source: Google

Definition:

JSON is an open standard file format and data interchange format that uses human-readable text to store and transmit data objects consisting of attribute-value pairs and arrays

What is the full form of JSON?

  • JavaScript Object Notation is a lightweight data-interchange format.
  • It is easy for humans to read and write.
  • It is easy for machines to parse and generate.
  • It is based on a subset of the JavaScript Programming Language.

What is the purpose?

For data communication between Client to Server, we use JSON objects.

What are Marshalling and Unmarshalling?

It is the converting of Object(POJO) into JSON and vice versa.

What is the difference between JSON object and JSON array?

JSON object will be in the form of simple key and value pair.

Ex. Employee name: “Tom”

JSON array will be in the form of a list as shown in below Ex.

Mobile
[
Samsung : “S1”
Apple : “iPhone 11”
Motorola : “e5 plus”
]

Declaration: All the information provided is based on my understanding of the concept.

Thanks for reading.

Declaration: This article is based on one of the videos by Naveen AutomationLabs and, the video link is below.

https://www.youtube.com/watch?v=ugb39NmkTVU&list=PLFGoYjJGfqp891lruz5fCRPWsDtEXJky&index=6

--

--