Skip to content
Trouble with JSON f...
 
Notifications
Clear all

Trouble with JSON format from HTTP Request TOOL (vs HTTP Request node)

4 Posts
3 Users
0 Reactions
4 Views
Brentbat
(@brentbat)
Posts: 2
New Member
Topic starter
 

I am retrieving data from a CRM. When I initiate the call from the HTTP Response NODE, I receive nicely formatted JSON.

However, when I perform the identical call from the HTTP Response TOOL (which is being invoked by AI), the JSON is not formatted nicely (please see below).

Does anyone have any ideas? (Apologies if this is a basic question; I'm still getting accustomed to things).

Thanks in advance,
Brent

Please share your workflow

 
Posted : 25/03/2025 2:41 am
mohamed3nan
(@mohamed3nan)
Posts: 18
Active Member
 

Hello, welcome to the community!

:tada:

What you're observing is expected behavior. In the second image, the JSON includes escape characters such as n (newlines) because the JSON response is being presented as a string when sent to the AI tool.

The initial view (from the HTTP Response NODE) displays the JSON object as parsed and formatted. In contrast, the second view (from the HTTP Response TOOL) shows the raw string representation, which contains these escape characters.

This string format is required for the AI to process the JSON data. However, it does not alter the actual data structure or its content. The AI will still be able to parse and utilize this information correctly, regardless of the visual difference.

 
Posted : 25/03/2025 5:01 am
Brentbat
(@brentbat)
Posts: 2
New Member
Topic starter
 

Hi there,

thanks for your reply. That makes complete sense.

My main worry was that if the data wasn't structured correctly, it might not interpret the fields and information as effectively. However, you've eased my concerns.

Thank you.
Brent

 
Posted : 25/03/2025 8:42 pm
system
(@system)
Posts: 332
Reputable Member
 

This thread was automatically closed 7 days following the last response. New replies are no longer permitted.

 
Posted : 02/04/2025 6:11 pm
Share: