PDF-app not properly parsing content, JSONEscape erring

The simplest way to ask my question: Why does message.content work in my debug Set Variable step, but not in the PDF-app step? … And when I include EscapeJSON, why does it work in debug but not in PDF-app?

I suppose it’s the ** that are throwing it off here



Escape JSON isn’t erring too though

Hi Ryan3001, add quotes "" around the array string "content": "content Array"

@Jonathan_Escobar Thanks so much for your reply. Unfortunately, I tried this already. Set Variable step works.

It fails again in the PDF-app step.

IMLError

Function ‘parseJSON’ finished with error! Bad control character in string literal in JSON at position 58

Here’s the error output. Curiously, I see the content there starting with “Summary of Symptoms:”. Can you have a look there? Does this mean the content is coming through, it’s just that the PDF-app is not able to use it to create a PDF?

This will replace the newline with a “\n” to make a JSON string
Try: "content": "{{replace(valueHere; newline; "\n")}}"
Or you could try the Transform to Json module