Check that a message is in JSON to avoid _jsonparsefailure