How would I take an HTTP node and pack it into json.body?

Describe the issue/error/question

I am looking to match a test API call up with the webhook data response. The webhook node has body in it but my HTTP test node does not. How can I manipulate the json to be json.body.item instead of json.body

Please share the workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 0.199.0
  • Database: SQLite
  • Running n8n: own
  • Running n8n: npm

Hi @cgsmith, I am not sure I fully understand what you’re looking for.

How does the JSON data you currently have look like and how do you want it to look like?

If you’re simply looking to move data under a different JSON key you could do so with the Set node. For example:

This would move the entire data from the HTTP Request node under body.item:

Exactly this! Thanks @MutedJam

1 Like

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