mongoimport expects specific order of json fields

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
              A. Jesse Jiryu Davis
              Reporter:
              Robert Dwingle
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: