#!/bin/bash FILE="lliurex_actions.json" RC=0 cat $FILE | jq . 1>/dev/null || RC=1 if [[ "$RC" = 0 ]]; then echo "JSON is OK"; fi exit $RC