jet-client-support icon indicating copy to clipboard operation
jet-client-support copied to clipboard

Add an option to reformat JSON in body

Open millsks opened this issue 2 years ago • 2 comments

When pasting JSON into the body of a request have an option to reformat/pretty it up. It would help with reading large/complex payloads.

For example:

Before

{ "user": "user001", "email": "[email protected]" }

After

{
  "user": "user001",
  "email": "[email protected]"
}

millsks avatar Apr 23 '23 18:04 millsks

Ctrl+Alt+L will take care of reformatting the JSON. Up to you if you want to close this out or would you consider a button for this next to the Fill JSON button?

millsks avatar Apr 23 '23 18:04 millsks

Thanks for suggestion. I'll add the button for reformatting.

AntonShuvaev avatar Apr 23 '23 18:04 AntonShuvaev