Easy-to-read JSON file via JSON formatter

ยท

2 min read

Easy-to-read JSON file via JSON formatter

JSON stands for JavaScript Object Notation. It's a popularly known text format, for storing and transporting data from a server to a webpage. JSON is easy to understand, it is structured in a name/value pair pattern, separated by a comma, and enclosed in a curly bracket.

JSON is easy to understand, meaning it's readable. Opening JSON file on the web, we discover all the objects are joined, which make it quite difficult for users to read and understand. These files are likely to be opened in a web browser like chrome.

Chrome extensions are developed to add new functionality to the browser. Using an online tool JSON formatter an extension in a web browser makes the JSON file look prettier and easy to read, also quick to understand.

Here is a view of a JSON FILE that appears unreadable.

unreadable format.PNG

How to get JSON formatter extension for chrome users. Visit chrome web store. Type in the search bar, JSON formatter. Install by clicking "add to chrome button". Download Chrome extension JSON formatter

A view of Chrome web store and JSON formatter.

formatter.PNG

The extension works on any JSON file, irrespective of the URL you open. For example, Visit this URL API response.

Here is the formatted view of the API response

Formatted.PNG

Does it look beautiful? Yes, it does.

The JSON trees are nested and collapsible. In case the tree appears long, use the collapsible for easy preview. At a glance, you can understand the content of the formatted file.

Every written program aims at achieving readability, which means it's easy to read and understand a program. Practice readability in your next project.

Did you find this article valuable?

Support BeeC00des by becoming a sponsor. Any amount is appreciated!

ย