Invalid Json - "Unexpected M"

Hey all,

New Here. Quick question- I am looking to hit an API and it expects a Json of data. I am trying to write different parts of the payload to fields in the api call.

I know im doing something stupid - Any idea what it is?
Pete

You cannot use msg.xyz to insert values into a JSON type property.

One alternative is to use the Template node that does support that sort of value substitution.

Right on. I was able to use a template to format the data into the entire request body:


Is there a way to then pass this to the request body field? Like is there any way to make the request dynamic?

Thanks again,
Pete

What node is that :point_up:

If you are just doing a HTTP request, you would simply populate msg.payload and pass that to the built in HTTP request node.

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