06-11-2024 09:08 AM
Hello community members,
I am looking for some guidance on below scenario if you have faced in past
I'll explain a flow a bit
I am getting HTTP GET call which is returning me Json Array response which after enrichment I need to send as individual requests for which I am using splitter.
Logically view : HTTP GET -> JSON Splitter -> Mapper enrichment -> HTTP POST
SnapLogic Intelligent Integration Platform
Issue I have is that this POST call is converting my request from Json Map/Obj to Json Array and hence my API calls are failing. Is there some config which i need to alter to avoid this.
Thanks.
06-11-2024 09:21 AM
If your api is simply expecting an array of your internal JSON object, you can change the http entity that you're sending (assuming your'e sending a raw http entity using the full document $
) to [$]
and that will wrap your document in an array.
06-12-2024 02:16 AM - edited 06-12-2024 02:16 AM
Hi @ddellsperger ,
It is actually the reverse.
The output of mapper is Json object but while making post call bosy is sent as json array, so there is extra [] in body which I don't want.
Any clue how to solve this.
yes, I am using raw entity and sending full document as $
06-13-2024 10:31 AM
can you DM me a link to your pipeline, I can look into this a bit more there.