Skip to content

Allow comments in JSON (and XML) body #78

@marc-nds

Description

@marc-nds

Is your feature request related to a problem?

No

Describe the solution you'd like

I'm aware that JSON is data only.

However when testing API's it can be convenient to have comments in them.

For example:"

{
  "JnCd": 15,  // This is a journal code
  // Transaction information:
  "TrIn": {
     "Amount": 1234.50
  }  
}

What JetClient could do is strip out the comments, identified by "//", before sending the JSON body to the API endpoint.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions