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

libbson serializes $binary to JSON in the wrong order

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • libbson
    • None
    • Fully Compatible

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: