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

Support new extended JSON types introduced in MongoDB 2.6

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8, 3.0
    • Component/s: None
    • Labels:
      None
    • Sprint:
      Python Sprint 8

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: