Hey guys,
I have a trigger from the parser app. When the parsed email body contains line breaks, I can’t use that field in my JSON webhook as the app gives me the following error message: “The app returned "Server could not parse JSON".”
It works just fine if I use the standard action from Zendesk, but the custom call gives me the error. The problematic part of the code is the “body” tag, where the line breaks cause troubles. Any thoughts?
unflatten: yes
method: PUT
headers:
Content-Type: application/json
auth: user|PW
data: {
"ticket": {
"status": "open",
"comment": {
"body": "This,
is where the line breaks appear.
Can anybody help?",
"author_id": "1900616036114"
}
}
}
url: https://domain.zendesk.com/api/v2/tickets/2081.json
pass_through: false