Hi, sorry if it is a stupid question. I am trying to use the JSON response from previous node and put into the body of a HTTP call.
The JSON response from INPUT is like this:
[
{
"target": "HAlbab7tFBNezyd5nFq3RA",
"mapping": {
"properties": {
"firstName": {
"valueProvider": {
"source": {
"id": "HJekVeSkBWjUotd84TzH8w",
"type": "schema",
"path": "$.FirstName"
},
"transformations": []
}
},
"lastName": {
"valueProvider": {
"source": {
"id": "HJekVeSkBWjUotd84TzH8w",
"type": "schema",
"path": "$.LastName"
},
"transformations": []
}
},
"ciamId": {
"items": {
"valueProvider": {
"source": {
"id": "HJekVeSkBWjUotd84TzH8w",
"type": "schema",
"path": "$.ContactID"
},
"transformations": []
}
}
}
}
}
}
]
I used {{$json}} to put the whole JSON into my node body, however it returns like this:
[Object: {“target”: “HAlbab7tFBNezyd5nFq3RA”, “mapping”: {“properties”: {“firstName”: {“valueProvider”: {“source”: {“id”: “HJekVeSkBWjUotd84TzH8w”, “type”: “schema”, “path”: “$.FirstName”}, “transformations”: }}, “lastName”: {“valueProvider”: {“source”: {“id”: “HJekVeSkBWjUotd84TzH8w”, “type”: “schema”, “path”: “$.LastName”}, “transformations”: }}, “ciamId”: {“items”: {“valueProvider”: {“source”: {“id”: “HJekVeSkBWjUotd84TzH8w”, “type”: “schema”, “path”: “$.ContactID”}, “transformations”: }}}}}}]
My question is how can I get rid of the Object that populated into my JSON? I just want to keep the JSON as the input.
Thanks a lot.
Regards,
Kai