Easily re-format JSON files with the yajl-tools Ubuntu package

Submitted by Peter Majmesku on Mon, 08/29/2016 - 20:49

If you have a minimized JSON file which you want to reformat, then you can install the yajl-tools package on Ubuntu:

sudo apt-get install yajl-tools

Afterwards you are able to reformat the file with the following command:

json_reformat -s < ugly.json > pretty.json
Subscribe to JSON