Skip to content

Postman incorrectly escaped characters in json pretty mode when the escape character is escaped #13569

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

Open
1 task done
zlepper opened this issue May 1, 2025 · 1 comment

Comments

@zlepper
Copy link

zlepper commented May 1, 2025

Is there an existing issue for this?

  • I have searched the tracker for existing similar issues and I know that duplicates will be closed

Describe the Issue

When using the "Pretty" display feature for json, postman incorrectly displays characters it thinks should be displayed even when the escape character \ is escaped.

This is a bit of a PITA to test against other implementations due to them using the \ to escape things, so be extra careful what you verify it against.

Steps To Reproduce

POST this json request:

{
    "message": "Escape \\u0041 Test"
}

to

https://httpbin.org/post

And observe the output between "Pretty" and "Raw". The \\u0041 has been converted to \A in "Pretty" which is incorrect at the \ is escaped.

In httpbin the request is already pretty printed, so it's quite easy to compare Raw and Pretty.

Screenshots or Videos

Image

Operating System

Linux

Postman Version

11.1.13

Postman Platform

Postman App

User Account Type

Signed In User

Additional Context?

No response

@parthverma1
Copy link

Hi @zlepper

Thank you for reporting the issue.

I was able to reproduce the issue and will provide an update once a fix has been implemented.

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

No branches or pull requests

2 participants