JSON error in http post

Hello everyone,

I’m new here and fairly new to N8N. I am trying to create 2 separate workflows. The first one start with a “on form submission” and then I want to send the JSON data via an http post to a web hook of another workflow with a view to append on an SQL database. Every time i execute the workflow, the data from the form go to the http post but it gives an error message with my JSON. Can you figure out the problem? Many thanks

2 Likes

Hey, you need to change the JSON parameter to this:

{
“full_name”: “{{ $(‘On form submission’).item.json[‘Full name’] }}”,
“phone”: “{{ $(‘On form submission’).item.json.Phone }}”,
“email”: “{{ $(‘On form submission’).item.json.Email }}”
}

The issue you had is because you weren’t wrapping the values in ““ which is required for JSON strings.

1 Like