Skip to main content
Open

JSON Formatter in HTTPCaller

Related products:Transformers
  • August 20, 2024
  • 4 replies
  • 120 views

warrendev
Enthusiast

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+15
  • Safer
  • January 3, 2025
NewOpen

alexbiz
Enthusiast
Forum|alt.badge.img+13
  • Enthusiast
  • July 8, 2025

Hey ​@warrendev

 

have you tried this ?

 

 


salvaleonrp
Enthusiast
Forum|alt.badge.img+16
  • Enthusiast
  • July 8, 2025

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
Enthusiast
Forum|alt.badge.img+24
  • Author
  • Enthusiast
  • July 10, 2025

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.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings