Newline in form fields causes problems in web hook
I have a form with 4 text area fields. The content is sent to a web hook , which transfers the data to our server.
Everything works smoothly as long as I do not place a newline in the text area fields.
All form fields are put together as new value in a ‘Change Data Value’, so I construct a json string :
{"<u>GOOGLE UTM</u>": "","Source":"{{lead.mkt_cp_utm_latest_source}}","Medium":"{{lead.mkt_cp_utm_latest_medium}}","Campaign":"{{lead.mkt_cp_utm_latest_campaign}}”,”Question 1”:”{{lead.mkt_5428_xmpie_answer_1}}","Question 2”:”{{lead.mkt_5428_xmpie_answer_2}}","Question 3”:”{{lead.mkt_5428_xmpie_answer_3}}","Question 4”:”{{lead.mkt_5428_xmpie_answer_4}}"}
The content is later used in the webbook :

Is a newline breaking the json?
Is the JSON sent from the Marketo web hook according to RFC7159? 'Tabs and newline characters, unencoded, are not allowed in strings in JSON according to RFC 7159