Skip to content

[DX Enrichment] Implement JSON Pretty-Printing for Generated Snippets #1555

@arcana022719

Description

@arcana022719

Tell us about the task you want to perform and are unable to do so because the feature is not available

Currently, when generating code snippets (specifically for Python - Requests and JavaScript - Fetch) from an API response, the output prints the JSON body as a single, minified line of text. While the request is successful, it is difficult to visually verify or debug the returned data directly in the terminal or console without using an external formatter.

Describe the solution/feature you'd like us to add

I propose an Enrichment to the code generation engine to support JSON Pretty-Printing.

  • Implementation: The generated snippets should include an indentation parameter by default (e.g., json.dumps(response.json(), indent=4) for Python).

  • UI/UX Enhancement: In the future, a toggle could be added to the Code tab to allow users to switch between "Minified" and "Pretty" output depending on their needs.

Any other feedback you would like to provide regarding the site

As an Undergrad CS student and GSoC 2026 applicant, I’ve found the API Dash desktop app to be incredibly lightweight and fast compared to Electron-based alternatives. I'm excited to contribute to improving the Developer Experience (DX) for the community!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    In progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions