03-11-2025 07:32 AM
I'm trying to replace the REST Get snaps in my pipelines with the Http Client snap but the response I'm getting is formatted differently. With the Rest Get snap, the JSON response is formatted as a list so I can subset it using $entity.data notation:
However, when I use the HTTP Client snap, the 'entity' element is returned as a string:
As close as possible, I tried to configure both snaps the same but I'm assuming there's something different about the HTTP Client snap that I need to change. Can someone explain what I need to do to get the HTTP Client to return the JSON in the same format at the Rest Get snap?
03-11-2025 07:50 AM
@maahutch - did you set your Content-Type in the HTTP Headers section of the HTTP Client?
03-11-2025 07:56 AM
In both the HTTP client and the REST Get snap , I have my headers set like this based on the source system documentation:
03-11-2025 09:18 AM
@maahutch - please check your HTTP Client snap settings, under Client Settings / Output and ensure it is set to JSON. JSON is the default, but perhaps it was changed accidentally?
03-11-2025 09:20 AM
Sorry - to clarify, it would be under Client Settings / Output / Response Type