libbson serializes $binary to JSON in the wrong order

XMLWordPrintableJSON

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

      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
            Reporter:
            Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: