How to merge output and convert into Suitable for http

Hey @ihortom and guys

I am getting data like shown below but I want to merge all of that and convert into like "contact_email_status_v2":["likely_to_engage","verified"],"person_locations":["United Kingdom"],"currently_using_any_of_technology_uids":["flutter"],"organization_num_employees_ranges":[",2000"]}

How can i make it work

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:

hello @Arsh_Tyagi

you can do that with Edit fields node in the JSON mode:

My understanding of your question is as follows. You have a node that contains data produced by many iterations (21 in your screenshot). Your goal is to merge those iterations into a single set of data.

The answer to that question has a few solutions and is dependent on the actual workflow. Here’s just one of the solution, which is quite ugly but should suit most of the cases if not all. Let’s assume that the node containing all the iterations you want to merge is called “Sets”. Then the node that merges all of them into a single set could be implemented with Code node like below. You also want to make sure it runs only once.

There are much more elegant solutions but they depends on specific workflow and where the “merging” node is placed in relation to the node that contains all the iterations you want to merge.

How to convert it into suitable for http

This is a very vague question as no API endpoint is the same. You need to refer to the documntation of the API you want to connect to with HTTP Request node before answering that question. Is there any documentation available for the endpoint in question?