Symbol ] disappears when executing node

Good afternoon.

The task is as follows:
There is an array of json data, it needs to be transmitted unchanged in a text message to telegram. In the telegram, the user responds with the message “YES” and this array should get into the telegram trigger node with the same json array.




But when executing the node, the characters ] are lost and, accordingly, it is impossible to process the data as a json array.

Why is this happening and how to make sure that the data is transmitted unchanged.

We need such a scheme:
json → telegram → user response → telegram → json

Information on your n8n setup

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

Added 2 processes: one with {{ $json.data }}, another with {{ JSON.stringify($json.data) }}. The result is the same - “]” is lost.

Hi @koordinator7

I tried to reproduce this but both scenarios work for me, the products array keeps the ]
or am I missing something?

Thanks, ria.
Helped parse mode HTML. Markdown mode does not work correctly. Where can I read about these modes?

If we send this data json to the telegram chat, we get a text in one line, it is difficult to read.
json-text1

How to get the information in a convenient form?

But it must be json because this data will be transmitted to another node.

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