jq: Validate JSON
Quick tip today. I wanted to validate my JSON file with jq. I think the common usage is to pipe text into jq but this is slow. jq has the ability to read the file directly, which is great if your json file is large. Next, we need to tell jq print out the loaded file. We use empty to not display any output. By default if there are any errors in the json file jq will output where the error is. ...