[Feature Request] When getting curl of request automatically minify JSON body
- Dominant language
- TypeScript
- Stars
- 40k
- Forks
- 2.4k
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 61
Description
- Insomnia Version: 6.0.1
- Operating System: Ubuntu 16.04
## Details
At the moment when I send a request using JSON, there is a button "Beautify JSON" at the bottom left corner. It is very useful and quick when I paste unformatted JSON to make it readable.
I think it would be nice to have opposite feature, eg. button called "Minify JSON" which basically means no new lines and spaces between JSON tokens. I guess, similar thing could be done to XML request type as I can see there is "Beautify XML" button.
Contributor guide
Research direction
Start by locating the request-to-cURL generation entry point and the existing JSON and XML “Beautify” controls. Compare the requested automatic JSON minification with the proposed “Minify JSON” button, then verify that generated cURL bodies contain no unnecessary whitespace and that the existing formatting behavior remains intact.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, developer-experience
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100