Autorepair json syntax

i write a lot of json manually for http node. is there some basic autocheck/repair for minor syntax errors?

selfhosted/latest

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

There’s no built in auto checker, but a site like https://jsonlint.com/ will point out the syntax errors.

yeah i use it, but it is annoying that a missed comma breaks your workflow. it is year 2024 after all. but i see there are some 3rd party libraries

You can build the json in the Code node and use it in the HTTP node as is. The code node allows the use of TS syntax, like here:

Plus it will check for the JSON issues

1 Like

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