Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-71904

Have `fromjson` understand `UUID("...")` extended json

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • None
    • None
    • None
    • Fully Compatible

    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.

      Attachments

        Activity

          People

            daniel.gottlieb@mongodb.com Daniel Gottlieb (Inactive)
            daniel.gottlieb@mongodb.com Daniel Gottlieb (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: