JSON.stringify() is not escaping the double quotes in version 110.0
Categories
(DevTools :: Console, defect, P3)
Tracking
(Not tracked)
People
(Reporter: pramod_bhat, Unassigned)
References
Details
Attachments
(1 file)
|
5.58 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/110.0
Steps to reproduce:
I was using the result of the JSON.stringify() to channel the string to a server which expects the double quotes in the JSON string to be escaped. But after upgrading to version 110, its not happening anymore.
- Go to console by right clicking on any window and choosing Inspect(Q) option.
- Type JSON.stringify({test:42}) and press enter
Actual results:
Observe that the result is '{"test":42}' where the double quotes have not been escaped.
Expected results:
The result should be "{"test":42}" where the double quotes should have escaped.
Comment 1•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'DevTools::General' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•2 years ago
|
||
We recently changed this in Bug 1375328. The string we print is still valid and simply uses single quotes to wrap it so that we use less escaping.
Why is this an issue for you? Do you have a use case which requires escaped quotes?
Updated•2 years ago
|
Comment 3•2 years ago
|
||
The component has been changed since the backlog priority was decided, so we're resetting it.
For more information, please visit auto_nag documentation.
Updated•2 years ago
|
Comment 4•2 years ago
|
||
A needinfo is requested from the reporter, however, the reporter is inactive on Bugzilla. Closing the bug as incomplete.
For more information, please visit BugBot documentation.
Description
•