JSON code responses from REST APIs or HTTP APIs are normally minified to reduce the payload size and this simple online tool helps you to format your JSON code with linebreaks and indents and make it easy to read.
It can format any kind of JSON code not only the REST API JSON responses. It also a JSON editor that indicates any error in your code as you type it.
Find some responses from the sample rest api for testing here
JSON formatter tool can be used as the followings:
A viewer is nothing but an embedded web text editor where you have to paste your code.
It has syntax highlighting and section collapsing and expanding options.
The text editor is also a code validator that will show you the errors and warnings at the line number bar of each line that has error(s) right after you paste your code.
It helps you identify the errors and fix before formatting it.
Finally, the JSON formatter tool helps you format or beautify your code to make it look nice for human eyes and increase its readability.
Formatting your JSON code can be done simply by following these steps below.
08/06/2019 - First version of the JSON Formatter tool published.