Details
-
Bug
-
Resolution: Duplicate
-
Major - P3
-
None
-
None
-
None
-
ALL
Description
> tojson({withSpaces: '1 2 3 done'})
|
{ "withSpaces" : "1 2 3 done" }
|
Here is the broken code: https://github.com/mongodb/mongo/blob/f876d2d71a7c238889c222164571a9e7170ec080/src/mongo/shell/utils.js#L978
Based on the blame, it looks like we've been doing this basically forever.
Attachments
Issue Links
- duplicates
-
SERVER-7424 Shell trims multiple whitespace characters in strings when displaying (data not affected)
-
- Closed
-