-
-
Save obonyojimmy/e63b2364dcb3e52e1ecf04c860b06fd0 to your computer and use it in GitHub Desktop.
validate json with python via bash script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo '{"foo":"bar"}' | python -m json.tool >> /dev/null && exit 0 || echo "NOT valid JSON"; exit 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment