[SERVER-14148] Remove unused "JS" mode from JSON output options Created: 03/Jun/14  Updated: 05/Apr/17  Resolved: 06/Jan/17

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 3.5.2

Type: Task Priority: Major - P3
Reporter: Shaun Verch Assignee: Jonathan Reams
Resolution: Done Votes: 0
Labels: neweng, platforms-re-triaged
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Platforms 2017-01-23
Participants:

 Description   

From https://github.com/mongodb/mongo/blob/r3.3.9/src/mongo/bson/oid.h#L238

We have 3 modes, "JS", "10gen", and "Strict".

  • "JS" is Javascript JSON compatible
  • "10gen" is Shell parseable
  • "Strict" is strict RFC compliant JSON

"JS" is distinguished from "Strict" only by having a Date constructor.

However, as documented in http://docs.mongodb.org/manual/reference/mongodb-extended-json/ and confirmed by removing the option and compiling, the "JS" mode is not used anywhere in the server. The correct answer may not be to take this out now, but this should make it clear that backwards compatibility doesn't need to be preserved for any of this dead code if this system is ever refactored.



 Comments   
Comment by Githook User [ 06/Jan/17 ]

Author:

{u'username': u'jbreams', u'name': u'Jonathan Reams', u'email': u'jbreams@mongodb.com'}

Message: SERVER-14148 Remove JS mode from JSON output options
Branch: master
https://github.com/mongodb/mongo/commit/f96f0ea2279962f31b18af1232ef11acfcb9f932

Generated at Thu Feb 08 03:33:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.