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
pretty viewer for JSON response doesn't decode escape characters #924
Comments
+1 It would be nice to have the option to "switch on/off" URL slash escaping. |
The most strange thing is that in Postman - REST Client(not packaged app) URL is parsed correctly and can be even clicked. It is strange that packaged app has this bug. |
+1 The issue isn't only on the "pretty" viewer, raw and preview are also escaped. |
+1 This is a thing that really bugs me |
Yeah, "raw" is not really raw when displaying |
@cameron-fgx @cnanney What version of Postman are you on? In 3.0.2, a server response of |
My mistake, this is not a Postman problem. Apparently the API is escaping forward slashes in the JSON response, so the actual value of When I use the "copy response" button from from any view, the escaping is removed and Is there a way for Postman to detect the escaped slashes and display it properly in the pretty tab? Raw should be the actual raw response, but in pretty can it unescape the slashes? |
This is now worse in 3.0.5. A response of I think in Pretty and Preview view, it should properly unescape all these entities, so |
@cnanney Can you confirm this fixed in 3.2.8 of the app? |
In 3.2.8 (packaged), this is resolved. I do notice that the "copy response to clipboard" button always produces the same output, rather than copying the raw response if you are viewing the raw tab when you press the button. This is no big deal, because if you want the actual raw data, you can always just manually copy and paste it from the textarea. |
Eg. raw json
{"links":[{"href":"http://localhost:5000/api_1_0/images","rel":"self"}]}
in pretty print, html link still contains escaping backslashes instead real text value
(according to json spec forward slashes can be escaped but it's not mandatory. Some libraries, like python ujson, produce jsons with such escape characters)
The text was updated successfully, but these errors were encountered: