Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format json file content when download response #1709

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Gabrielcefetzada
Copy link
Contributor

@Gabrielcefetzada Gabrielcefetzada commented Mar 1, 2024

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:

  • The pull request only addresses one issue or adds one feature.
  • The pull request does not introduce any breaking changes
  • I have added screenshots or gifs to help explain the change if applicable.
  • I have read the contribution guidelines.
  • 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.

@helloanoop
Copy link
Contributor

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.

@Gabrielcefetzada
Copy link
Contributor Author

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

@helloanoop helloanoop assigned helloanoop and unassigned sanjai0py Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request] Format json code present at response downloaded file.
3 participants