JSONlint is a small utility using libjson. it's able to verify and reformat JSON file.
the following will reformat input.json file and create a file output.json:
jsonlint --format input.json -o output.json