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

Support new extended JSON types introduced in MongoDB 2.6

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.8, 3.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      MongoDB 2.6 supports a new $numberLong extended JSON type to represent BSON int64. There is a $undefined type that also appears to have been added in 2.6.

      PyMongo's json_util module should support decoding these to the appropriate python types (None for $undefined, BSONInt64 for $numberLong).

      http://docs.mongodb.org/manual/reference/mongodb-extended-json/#data_numberlong
      http://docs.mongodb.org/manual/reference/mongodb-extended-json/#undefined-type

      In the 2.x branch of PyMongo we'll support decoding $numberLong and $undefined, but won't introduce the new Int64 type.

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            bernie@mongodb.com Bernie Hackett
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: