bruno
bruno copied to clipboard
Format json file content when download response
Description
When we download a file trough the dowload button at response section, the file is with no formatting. With this contribution, it will be able to get formatted content. Closes issue-1708
How was:
How is now:
Contribution Checklist:
- [x] The pull request only addresses one issue or adds one feature.
- [x] The pull request does not introduce any breaking changes
- [x] I have added screenshots or gifs to help explain the change if applicable.
- [x] I have read the contribution guidelines.
- [x] Create an issue and link to the pull request.
Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.
One of the issues with automatically stringifying JSON responses with indentation is that - it might alter the response text in case of decimals as well lose fidelity of the response contains longint / bigint
A better solution for this is to show the user a modal when downloading json responses - giving them an option to prettify the response before saving to file.
Well, at least, Bruno could mantain the issue open for the future