Skip to content

[Feature]: Pretty-printed, nested JSON and validation support for Mock Response Body #496

@sibelyiildz

Description

@sibelyiildz

What do you want to see in Flocon?

In the Mock Edition screen, the response body is currently displayed as a raw JSON string.
This makes it difficult to read and edit, especially for large and nested JSON structures.

In the regular "Response - Body" screen, JSON is formatted and indented. Displaying Mock responses in the same way would provide a more consistent and readable user experience.

Proposed Improvements

•⁠ ⁠Automatically pretty-print JSON (formatted and indented)
•⁠ ⁠Optionally, support collapsible nested objects
•⁠ ⁠Validate JSON and display errors for invalid input

Why This Matters

•⁠ ⁠Improves readability
•⁠ ⁠Makes editing and creating mock responses easier
•⁠ ⁠Helps manage large and nested JSON payloads
•⁠ ⁠Syntax errors are immediately visible

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions