Go to All Forums

webhook json data double quote not escaped

hi all

wee use webhook in order to provide the web monitoring event 

this the json tempate user under 24x7

{"status_Site24x7":"$STATUS","title":"$MONITORNAME","monitor_id":"$MONITOR_ID","tags":$TAGS,"message":"$INCIDENT_REASON","metric":"$MONITORURL","alert_time":"$INCIDENT_TIME","source":"${SOURCE}","link":"$MONITOR_DASHBOARD_LINK","type":"$MONITORTYPE","groupname":"$MONITOR_GROUPNAME","time_unix_format":"$OUTAGE_TIME_UNIX_FORMAT","rca":"$RCA_LINK"}

unfortunently   teh variable $incent_reason could contains double quote due to the string format 

exemple you didn't find a word under wbe page the incident reason is  like The String "hello" is not present in the response

or the double quote are'nt escaped

how to escape them or removed them under 24x7

thx regards eric

Like (1) Reply
Replies (0)