Return empty string for invalid JSON values.

This commit is contained in:
vladon 2026-01-27 02:15:14 +03:00
parent d64f267420
commit a2c78a92d8

View file

@ -647,13 +647,13 @@ process_json() {
fi
if [[ -z "$json" ]]; then
echo "$STATUS_NA"
echo ""
return
fi
if ! is_valid_json "$json"; then
log "$LOG_WARN" "Invalid JSON input for filter: $jq_filter"
echo "$STATUS_NA"
echo ""
return
fi