[SERVER-71904] Have `fromjson` understand `UUID("...")` extended json Created: 06/Dec/22  Updated: 29/Oct/23  Resolved: 07/Dec/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.3.0-rc0

Type: Task Priority: Major - P3
Reporter: Daniel Gottlieb (Inactive) Assignee: Daniel Gottlieb (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 Description   

`fromjson` current understands UUIDs of the form:

{a: {$uuid: "..."}}

It'd be consistent to also recognize:

{a: UUID("...")}

This would offer parity with how other types can be parsed (e.g: ObjectId) as well as better round-tripping with shell output.



 Comments   
Comment by Githook User [ 07/Dec/22 ]

Author:

{'name': 'Daniel Gottlieb', 'email': 'daniel.gottlieb@mongodb.com', 'username': 'dgottlieb'}

Message: SERVER-71904: Have `fromjson` understand `UUID(...)` extended json.
Branch: master
https://github.com/mongodb/mongo/commit/1c32419a4c630570250837bba4a845ffdca30a78

Generated at Thu Feb 08 06:20:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.