# Install tool
jqsudo apt-get install jq
# Pretty file
jq '.' myFile.json > myFileBeautified.json
# Delete JSON property
jq 'del(.[].field.fieldToDelete)' myFile.json > myFileBeautified.json
# Compact file
jq -c '.' myFileBeautified.json > myFileCleaned.json