Blog

14/05/2025

Introducing the Beautify Feature: Polishing Your Request Bodies with Ease 

We’re excited to announce the new Beautify feature, designed to make your JSON, XML, and GraphQL request bodies clean, readable, and professionally formatted.  

This update was a key issue for developers: unformatted or messy request bodies that are hard to read or debug. With the Beautify feature, you can now transform raw, unformatted strings into neatly structured code with a single click, streamlining your workflow and improving code clarity. 

You can access this feature now 

Why Beautify? 

When working with APIs, developers often deal with JSON, XML, or GraphQL request bodies that are either shortened, poorly formatted, or manually written. These unformatted strings can be difficult to read, increasing the chance of errors and slowing down debugging.  

The Beautify feature was created to solve this problem by providing a simple, reliable way to format request bodies directly within the editor. Whether you’re testing APIs or preparing to deploy, this feature ensures your code is consistently clean and easy to understand. 

What the Beautify Feature Can Do 

The Beautify feature takes a raw or unformatted string in the editor and reformats it into a polished, human-readable structure. Here’s what it supports: 

  1. JSON: Parses and reformats JSON strings with proper indentation and spacing.

  2. XML: Converts XML into a well-structured, indented format.

  3. GraphQL: Formats GraphQL queries similarly to JSON (full GraphQL-specific formatting is still in development). 

Smart Behavior:

  1. The Beautify button is disabled when the editor is empty, preventing unnecessary actions.

  2. If plain text is selected as the body type, the Beautify button is hidden, as formatting doesn’t apply.
  3.  

How the Beautify Feature Works 

The Beautify feature is powered by a combination of parsing, formatting, and editor-updating methods, tailored to each supported body type. Here’s a breakdown of the process: 

Why This Matters 

The Beautify feature is more than just a cosmetic upgrade—it’s a practical way to enhances productivity and reduces errors. By automating the formatting process, it lets developers focus on building and testing APIs rather than wrestling with unreadable code. Whether you’re a seasoned developer or just starting out, this feature makes your request bodies clear, consistent, and ready for action. 

Have feedback or ideas? Drop us a line—we’d love to hear how Beautify is helping your workflow. 

Haven’t tried it yet? Try Beautify feature now- https://qyrus.com/qapi 

Author

Author Avatar

    Debunking the myths around API testing

    Join us for a live and interactive session, and learn how API testing is now simplified!

    Register Now!