Skip to content

Support Comments Inside Request Body (for API Testing) #4026

@chandanPradhan09

Description

@chandanPradhan09

Description
While testing APIs, it’s often useful to include comments within the request body—especially when working with large JSON payloads, optional fields, or conditional data. Currently, Requestly does not allow adding comments (e.g., // comment) inside the body of a request. This causes the request to fail because the body becomes invalid JSON.

Why This Is Important

Helps developers annotate complex payloads

Makes debugging easier

Useful for toggling optional fields during testing

Matches behavior of tools like Postman & Insomnia (which gracefully ignore comments)

Proposed Solution
Allow comments in request bodies by stripping them before sending the final API request.
Support for formats like:

{
"name": "Chandan",
// "testValue": 123, // temporarily disabled
"active": true
}

Additional Notes

This would greatly enhance usability for API developers and testers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue[Do not delete] Distinguish between PR and Issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions