cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

HTTP Client Snap is converting json object to array while performing POST call

vish_ch
New Contributor

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.

3 REPLIES 3

ddellsperger
Employee
Employee

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.

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 $

can you DM me a link to your pipeline, I can look into this a bit more there.