Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-1340

libbson serializes $binary to JSON in the wrong order

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: libbson
    • Labels:
      None
    • Fully Compatible

      libbson outputs the binary type as

      {"$type": "<t>", "$binary": "<b>"}
      

      The correct order should be

      { "$binary": "<b>", "$type": "<t>"}
      

      https://docs.mongodb.com/manual/reference/mongodb-extended-json/#binary

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: