JSON Data Binding

Learn about JSON, a popular data format being used in REST applications.

The most commonly used data formats in a REST application are JSON and XML. JSON stands for JavaScript Object Notation. It is a plain text data format used for exchanging data between applications.

JSON is a collection of name-value pairs, which the application processes as a string. So, instead of using HTML or JSP to send data, it is passed as a string, and the application can process and render the data accordingly. JSON is language-independent and can be used with any programming language.

Syntax

A sample JSON object is shown below, along with rules regarding the syntax.

Level up your interview prep. Join Educative to access 80+ hands-on prep courses.