Skip to content

[Feature Request]: Allow comments in JSON request bodies  #186

@TheBitShepherd

Description

@TheBitShepherd

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions