bruno icon indicating copy to clipboard operation
bruno copied to clipboard

Format json file content when download response

Open Gabrielcefetzada opened this issue 1 year ago • 2 comments

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:

image

How is now:

json-formatted-at-file image

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.

Gabrielcefetzada avatar Mar 01 '24 23:03 Gabrielcefetzada

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.

helloanoop avatar Sep 26 '24 10:09 helloanoop

Well, at least, Bruno could mantain the issue open for the future

Gabrielcefetzada avatar Sep 27 '24 00:09 Gabrielcefetzada