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

mongoimport expects specific order of json fields

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None

      It looks like mongoimport expects specific order of json fields while restoring data_binary fields. If "$binary" comes before "$type", everything is restored correctly. However, if "$type" comes before "$binary" (which is the case while using bson.json_util from Python libs) the object is restored as-is (i.e. "$binary" and "$type" become field names in mongodb record).

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            ireuhon Robert Dwingle
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: