DEV Community

Aoppman
Aoppman

Posted on

JSON

JavaScript Object Notation or "JSON" for short - is a data format that utilizes a syntax that closely resembles that of JavaScript objects. The data is in a "human-readable" text format and usually consists of strings written in the form of JavaScript objects, containing "keys" and "values". Then, we can further group these objects into arrays, another JS data type that is familiar to new and experienced developers. Let's not forget to mention, like in the basic JavaScript object, JSON also allows the use of JS data types such as numbers, booleans and object methods.

JS Object (Basic JS object - only the object values *consisting of the string data type require double quotations/quotation)

JSON Object (Basic JSON string - resembling a JS object but all text must be wrapped in double quotations)

Although appearing as JavaScript, many different programs are able to parse as well as generate JSON. It is used to to send data from a server to the client, as well as send client data to a server.

JSON data can be saved in its own file, consisting of a text document/file using the ".json" tag name. Along with an ".html" file, and a ".js" file - we can manipulate, request and receive data displayed on a webpage.

JSON is another stepping stone in the current learnings I am undergoing in my software development journey. This is another part to the bigger picture I touched base on in my previous blog post about - Manipulating the DOM.

In my next few blog posts I will go over more on this topic and break down how using JSON, we can send and receive data using postman, "fetch" and the different types of HTTP requests they entail, working with the JSON server.

Top comments (0)