Binary values serialize as <BinaryData> rather than extended JSON

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • 2.8.0
    • Affects Version/s: 2.7.3
    • Component/s: API
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We have a binary value in a document that serializes to the screen in the mongo shell as:

      { "myField": BinData(2,"BINDATAHERE") }
      

      but in the Java driver it's serializing as

      { "myField": <Binary Data> }
      

      According to the Mongo extended JSON doc it should be serializing as:

      { "myField": { "$binary": "BINDATAHERE", "$type": "2" } }
      

            Assignee:
            Bryan Reinero (Inactive)
            Reporter:
            Jared D. Cottrell
            None
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: