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

Streams: always use bsoncxx::from_json in json_event_deserializer

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Atlas Streams
    • Fully Compatible
    • Sprint 56, Sprint 57

      In json_event_deserializer.cppp, we should always use the bsoncxx from json. It supports the entire JSON spec.

      See this comment in fromjson: https://github.com/mongodb/mongo/blob/ccaadff2491cd1758157358101df1636a3da9c96/src/mongo/bson/json.cpp#L1396

      Also, according to Mark, most uses of fromjson are only in test cases: https://mongodb.slack.com/archives/C0V2Z88D8/p1695414350852849?thread_ts=1695413685.467989&cid=C0V2Z88D8

            Assignee:
            calvin.nix@mongodb.com Calvin Nix
            Reporter:
            matthew.normyle@mongodb.com Matthew Normyle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: