Not able to merge the http responses in 1 Json, comparing a common header and eliminate duplicate headers. When we are using merge node for merging, the responses are getting merged one after another
What is the error message (if any)?
Please share your workflow
for example if
Http 1 response is
[
{
a=1,
b=2,
c=3
}
]
Http2 response
[
{
a=1,
y=4,
i=7,
o=8
}
]
Expected output is :
[
{
a=1,
b=2,
c=3,
y=4,
i=7,
o=8
}
]
the output we are receiving is incorrect in the workflow:
Are you sure that response is correct? The JSON is invalid which will make it very tricky to work with. Can you share your workflow as well so we can take a look?
In that example you can just use Merge By Position and it will sort it out, It looks like the JSON in the code node is different from the example you shared earlier as well.