[SERVER-552] json - escape % bug Created: 18/Jan/10  Updated: 12/Jul/16  Resolved: 20/Jan/10

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 1.3.1

Type: Bug Priority: Minor - P4
Reporter: Eliot Horowitz (Inactive) Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

parsing

{ "x" : "\%" }

doesn't work

we should test other things like it when we do it.



 Comments   
Comment by Mathias Stearn [ 20/Jan/10 ]

Technically only escape characters can be preceded by a \ in JSON, but since our parser is lax anyway I made it ignore the slash for any character that isn't an escape sequence in javascript. You still cant use \xXXX and \OOO sequences, but the \uXXXX sequence should cover those cases.

Comment by auto [ 20/Jan/10 ]

Author:

{'name': 'Mathias Stearn', 'email': 'mathias@10gen.com'}

Message: Support more escapes in JSON strings SERVER-552
http://github.com/mongodb/mongo/commit/9cde296ca6bdaf968396de9be2c65bf067771187

Generated at Thu Feb 08 02:54:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.