We are using RTI webhook to post the message notification to store it in Cloudant DB
. We are passing {{message}}
parameter to the POST call body. Upon storage we notice the "/"
character before every quote(")
. This seems to be a bug as this make the JSON invalid to consume at later stage. Below is the example of what {{message}}
contains in one of our case
"{\"d\":{\"Energy_Consumption\":150,\"pressure\":36.84546626947179,\"water_usage\":1640.0274074248778,\"temp\":45},\"ts\":\"2016-03-15T06:48:02.320+0000\",\"ruleContent\":{\"id\":\"J4jn6Wqv\",\"contextSchemas\":[],\"ruleCondition\":\"IOT_DeviceSchema.d.temp>40 AND IOT_DeviceSchema.d.pressure<80 AND IOT_DeviceSchema.d.Energy_Consumption>100\",\"messageSchemas\":[\"IOT_DeviceSchema\"],\"jobID\":\"tOXtlQLA\",\"name\":\"Device_Alert\",\"severity\":2,\"actions\":[\"Xfy2CCx6\"],\"transforms\":[],\"destination\":\"tenant.228e9515-9a62-448a-ba9a-a570000ba619.ruleOutput\"},\"deviceId\":\"ftkgac:IOTsample_devicetype:Device03\"}"