Issue with JSON structure/syntax

My JSON contains data, appears to be correct, however when I am trying to use it using javascript, it is simply returning [object object] istead of real data which is causing systax error while loading it into MongoDB through API.

Please refer to the screenshot:

What is the error message (if any)?

400 - “"Invalid syntax error: TypeError: invalid character ‘o’ looking for beginning of value"”

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

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

This solved the problem.

Thanks!

1 Like

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