Hello!
I need to send an HTTP request with JSON in a body with the following content:
const data = {
‘testing’: ‘1’,
‘lifetime’: ‘129600’,
‘items’: ‘[{“name”: “Yura”, “price”: 1}]’
};
special attention to the items field, it’s a string! this is how it should be passed, with double quotes inside.
And the question: how to make it so that it would be transmitted
‘items’: ‘[{“name”: “Yura”, “price”: 1}]’,
but not
‘items’: ‘[{\“name\”: \“Yura\”, \“price\”: 1}]’
i.e. without escaping double quotes.
Information on your n8n setup
- n8n version: self hosted 0.196.0
- Database you’re using (default: SQLite): mysql
- Running n8n with the execution process [own(default), main]: own
- Running n8n via [Docker, npm, n8n.cloud, desktop app]: docker