Introduction to JSON

  • Understanding JSON

JSON (JavaScript Object Notation) is a data format used for data exchange and storage. JSON can be read by various programming languages ​such as C, C++, C#, Java, Python, Javascript, Perl and many more. This makes JSON an ideal language for exchanging data between applications.

  • A Brief History of JSON

JSON was first popularized by Douglas Crockford. A software engineer who is also involved in the development of the Javascript programming language. JSON was not discovered by one person alone. It used to be called JSON. The meaning of the word “JSON” does not yet exist. People only know Javascript Objects that are sent over the network. Since the explosion of AJAX technology in 2000. JSON was introduced and in 2001, the domain json.org went live. Until recently JSON was widely used everywhere.

  • JSON functions in programming languages

JSON is usually used as a standard format for exchanging data between applications. But there is another function of JSON, namely:

  • JSON as a format for exchanging client and server data or between applications. Example: RESTful API
  • JSON as a place to store data, for example: Mongodb Database
  • JSON is used to store project configuration, for example: composer.json file in PHP project and package.json in Nodejs
  • JSON is used to store configuration and data storage on Hugo
  • JSON is used to store project configuration in Nodejs
  • JSON is used to store manifest data
  • and much more.
  • JSON basic structure

JSON always starts with a curly brace { and ends with a closing curly brace }. Then inside the curly braces, it contains data in the form of key and value formats. If there is more than one data, then it is separated by a comma and the last data is not given a comma. Examples like this:

{

    “name”: “Okta Ari Aditya”,

    “age” : 17,

    “hobby”: [“Coding”, “Game”, “Watching Film”],

    “social media” : {

                  “facebook” : “Okta Aditya”,

                  “instagram” : “oktakytzl”

}

}

  • Conclusion and Closing

In programming we need data exchange and storage, actually not only JSON can be used but can be XML and many more, but JSON is much more effective and easy to read and its functions are very diverse.

The need for digital IT is needed in daily activities, Bead IT Consultant is the right choice as your partner, visit our website by clicking this link: www.beadgroup.com