# LOG DE LA REPONSE
#echo "$(cat response.json)" 2>&1 | tee -a $log_file
- # VALIDATION DU JSON (nécessite outil de validation json)
- isJSONCorrupted=$(module/json -nq response.json)
-
+ # VALIDATION DU JSON (nécessite outil de validation json et paquet node)
+ isJSONCorrupted="$(module/json -nq response.json)"
+ echo "${isJSONCorrupted}"
# SI LA VARIABLE EST INITIALISEE MAIS VIDE => PAS D'ERREUR
if [[ -z $isJSONCorrupted && ${isJSONCorrupted+x} ]]
then