Skip to content

Unescape forward slash in json string when previewing response [INS-5465] - #8698

Merged
yaoweiprc merged 1 commit into
developfrom
fix/preview-json
May 15, 2025
Merged

Unescape forward slash in json string when previewing response [INS-5465]#8698
yaoweiprc merged 1 commit into
developfrom
fix/preview-json

Conversation

@yaoweiprc

@yaoweiprc yaoweiprc commented May 8, 2025

Copy link
Copy Markdown
Contributor

Close #8517
This issue originates from #1556
I used JSON.stringify(JSON.parse(resStr)) in #8354 to prettify JSON.
But that leads to the problem of floating-point precision loss #8517

So I wrote a dedicated function unescapeForwardSlash, to do it.

@yaoweiprc yaoweiprc changed the title Unescape forward slash in json string when previewing response Unescape forward slash in json string when previewing response [INS-5465] May 8, 2025
@yaoweiprc
yaoweiprc requested a review from a team May 8, 2025 09:30
@yaoweiprc
yaoweiprc enabled auto-merge (squash) May 15, 2025 12:53
@yaoweiprc
yaoweiprc merged commit d22abe8 into develop May 15, 2025
@yaoweiprc
yaoweiprc deleted the fix/preview-json branch May 15, 2025 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Insomnia v11.0.0 Incorrectly Handles Large Floating-Point Numbers (Rounding and Truncation)

2 participants