Importing special types from exported JSON

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Critical - P2
    • None
    • Affects Version/s: 3.0.0
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      After a mongoexport to JSON you will have special field types starting with $. For example

      "_id" :

      { "$oid" : "5188b68c0e7285c291bf013a" }

      "releaseDate" :

      { "$date" : 1237248000000 }

      Trying to insert the JSON file to a collection using the node driver will error with the following:
      key $oid must not start with '$'
      key $date must not start with '$'

            Assignee:
            Christian Amor Kvalheim
            Reporter:
            Jonathan Rainey [X]
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: