bruno
bruno copied to clipboard
fix: json body prettify not working with comments
Added Microsoft's node-jsonc-parser library that is able to format json with comments. Seems to handle bigints properly too.
It may be good to consider replacing existing decomment library with jsonc-parser if its only use case is to decomment json.
Fixes usebruno#1830
Before. Failing to prettify JSON body with comments:
After. JSON body properly formatted:
Description
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.
Publishing to New Package Managers
Please see here for more information.