Support new extended JSON types introduced in MongoDB 2.6

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Done
    • Priority: Minor - P4
    • 2.8, 3.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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 Hackett
              Reporter:
              Bernie Hackett
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: