-
Notifications
You must be signed in to change notification settings - Fork 539
Description
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.