Parsing multiline input text to custom PATCH API

i have the same isue as here: Custom action with sendgrid API: how do I parse multiline text? - #5 by v7sion

somehow very surprised this is not a bigger topic :slight_smile:

im building web app
external collection
Custom event: Update (patch)

All works well, until I sent multiline text because it breaks the JSON


“test”:“all okay”


for the obvious reason”

Solution (i think)
How can I turn the mutliline text into

“test”:“something\n like this\n thanks!”