desktop icon indicating copy to clipboard operation
desktop copied to clipboard

[Feature Request]: Allow comments in JSON request bodies

Open TheBitShepherd opened this issue 1 year ago • 4 comments

What happened?

It would be convenient if comments were permitted in JSON request bodies. Often, there are scenarios where a request body might have many different permutations that make inefficient to create a single request for each one. Instead, allowing users to be able to comment out a portion of the request body would be quite useful.

Steps to reproduce?

  1. Launch the app
  2. Find your favorite endpoint that accepts POST or PATCH and include a comment in the request body.

Example

{
    // "foo": "baz",
    "foo": "bar"
}

What did you expect to happen?

It would be nice if HTTPie Desktop allowed the above request body to be sent as:

{ 
    "foo": "bar"
}

Platform

macOS

HTTPie Desktop version

2024.1.2

Relevant log output

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

TheBitShepherd avatar Aug 28 '24 19:08 TheBitShepherd

I would love this. This feature is the last reason I'm still using Postman in my workflow

aaclarker avatar Sep 06 '24 16:09 aaclarker

Any idea if this is something that will be looked into? @jkbrzt Would love this too.

blaqshyd avatar Jan 31 '25 07:01 blaqshyd

This would be so helpful!

mallorymerkel avatar Feb 21 '25 17:02 mallorymerkel

Any updates?

ivan-ivory avatar Jul 28 '25 15:07 ivan-ivory