How to validate content type=JSON in Mule How to validate content type=JSON in Mule json json

How to validate content type=JSON in Mule


You can still use the is-json-filter but you need to wrap it in a message filter so you can control the "else" path:

<message-filter onUnaccepted="noJsonFlow" throwOnUnaccepted="false">  <json:is-json-filter /></message-filter>