Not getting proper JSON format from http request TOOL (vs Http request node)

I’m retrieving data from a CRM. When I make the call from the HTTP Response NODE I get nicely formatted JSON.

But when I make the identical call from the HTTP Response TOOL (being called by AI) then the JSON is not formatted nicely (see below).

Any ideas (sorry if it’s a noob question… I’m still finding my feet)

Thanks in advance
Brent

Please share your workflow

Hello @Brentbat, welcome to the community! :tada:

What you’re seeing is completely normal. In the second image, the JSON contains escape characters like \n (newlines) because the JSON response is being represented as a string when passed to the AI tool.

The first view (from the HTTP Response NODE) shows the parsed and formatted JSON object directly, while the second view (from the HTTP Response TOOL) shows the raw string representation that includes escape characters.

This string representation is necessary for the AI to process the JSON data, but it doesn’t affect the actual data structure or content. The AI will still be able to correctly parse and use this information despite the different visual appearance.

1 Like

Hey Mohamed
thanks for your response. That makes total sense.

My biggest concern was that if the information was not structured properly, it may not understand the fields and data as well. But you have put my mind to rest.

Thank you.
Brent

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.