Skip to main content
Open

JSON Formatter in HTTPCaller

Related products:Transformers
  • Aug 20, 2024 3:27 PM UTC
  • 4 replies
  • 204 views

warrendev
Influencer
Forum|alt.badge.img+28

I would like to see a built-in option in the HTTPCaller transformer to format the response body for development purposes. I know that the HTTPCaller in 2024.2 has the “HTTP Test Request Preview” that shows the response body formatted, but it would also be nice to have the attribute “_response_body” formatted instead of having to use an additional transformers “JSONFormatter” or “XMLFormatter”.

 

Example of HTTP Test Request Preview

 

There could possibly be a toggle to format the response body, or to keep it in raw form. Instead of using the JSONFormatter or XMLFormatter, I would like to have the response body formatted directly in the HTTPCaller.

 

4 replies

LizAtSafe
Safer
Forum|alt.badge.img+26
  • Safer
  • Jan 3, 2025 3:07 PM UTC
New→Open

alexbiz
Influencer
Forum|alt.badge.img+35
  • Influencer
  • Jul 8, 2025 2:48 PM UTC

Hey ​@warrendev, 

 

have you tried this ?

 

 


salvaleonrp
Enthusiast
Forum|alt.badge.img+23
  • Enthusiast
  • Jul 8, 2025 9:21 PM UTC

Some APIs have that option…. like ESRI’s Rest API... f=pjson. For authoring and for formats that do not have the pretty option, I use what ​@alexbiz suggests.


warrendev
Influencer
Forum|alt.badge.img+28
  • Author
  • Influencer
  • Jul 10, 2025 10:58 PM UTC

Hi ​@alexbiz, I’ve actually been using this method, and it works well, but I’ve noticed when working with different API responses within a workspace, XML and JSON for example, I have to switch it back and forth in the different HTTPCallers. It’s not really an issue though, and it is very useful to have the option to change the syntax formatting.