JSON Lint or jq in Ubuntu to Format JSON Files

Ubuntu has a jsonlint that can format json stand-alone, and it looks like there might be other ports

Usage with jsonlint:

$ jsonlint -f temp.txt > temp-format.txt

Usage with jq:

$ jq '.' < en.json

Leave a Reply