Skip to content

Instantly share code, notes, and snippets.

@mut3
Created April 2, 2019 17:49
Show Gist options
  • Save mut3/0b8106a538015a4e72476db6be5d4239 to your computer and use it in GitHub Desktop.
Save mut3/0b8106a538015a4e72476db6be5d4239 to your computer and use it in GitHub Desktop.
Check *.json for valid json, return failures
#!/bin/bash
for i in *.json; do if ! jq . $i &>/dev/null; then echo "fail: ${i}"; fi; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment