Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-1039

Support bson.int64.Int64 in json_util.default

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

      We currently let python's json module handle encoding all integers, and Int64 inherits from int or long depending on python version. json_util.default should convert Int64 to mongo extended json $numberLong. See:

      https://docs.mongodb.org/v3.0/reference/mongodb-extended-json/#data_numberlong

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

              Created:
              Updated:
              Resolved: