Link Search Menu Expand Document

HTML template to PDF templateData is not valid json model

If you have double-quotes inside double-quotes in your templateData, you’ll need to use the \\\ escape characters.

Incorrect

{
    "templateData": "{\"note\": \"Thank you for your \"support\" of advanced robotics.\"}"
}

Correct

{
    "templateData": "{\"note\": \"Thank you for your \\\"support\\\" of advanced robotics.\"}"
}

You can also replace the double-quotes with single-quotes and add the \ escape character before the double-quote.

Correct

{
    "templateData": "{'note': 'Thank you for your \"support\" of advanced robotics.'}"
}