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

Support new extended JSON types introduced in MongoDB 2.6

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • None
    • 2.8, 3.0
    • None
    • None

    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

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

              Dates

                Created:
                Updated:
                Resolved: