Uploaded image for project: 'Rust Driver'
  1. Rust Driver
  2. RUST-801

Provide alternative default serialization formats for BSON types

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: BSON
    • Labels:
      None

      Right now, the various BSON specific types (e.g. ObjectId) will serialize to / deserialize from the extended JSON representation (or its equivalent if not in JSON) of the type when not serializing to BSON. This can sometimes be surprising to users that expect more friendly formats, such as a hex string for ObjectId or an ISO-8601 formatted string for DateTime. We should provide a way to specify alternative default serialization formats through a feature flag (or some other mechanism).

            Assignee:
            Unassigned Unassigned
            Reporter:
            patrick.freed@mongodb.com Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: