How to pass json inside a json property

Describe the problem/error/question

I’m try to pass a json in a json tag to an HTTP request node and I receive the error below. I think the problem is related to the double quotes in the “content” of the json for the prompt. I’ve already tried to use the parse and stringify with no success.

What is the error message (if any)?

JSON parameter needs to be valid JSON

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • **n8n version: 1.73.1
  • **Database (default: SQLite):SQLite
  • **n8n EXECUTIONS_PROCESS setting (default: own, main):main
  • **Running n8n via (Docker, npm, n8n cloud, desktop app):cloud
  • **Operating system:cloud

Hey @ludo , if value in any of the expressions you use to compose the JSON body has a double quote ("), then yes, it will break JSON. The easiest way to handle it would be to compose that JSON as string just before HTTP Request node with Set node, for example. You also might want to use POST JSON body as the whole expression too.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.