Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-1083

mongoimport: option to support an array of json objects

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.5.3
    • Affects Version/s: 1.5.1
    • Component/s: None
    • None
    • Environment:
      os x

      Many public API's (twitter, for example) return a collection of json objects for a request for a collection of resources. The mongoimport tool only understands newline-delimited json objects in a file. In other words, it only understands one json object at a time. It seems like mongoimport should know how to understand these collections natively. For example, trying the following will result in an error:

      curl http://api.twitter.com//1/statuses/user_timeline.json?screen_name=noradio > noradio.twitter.json
      mongoimport -d twitter -c noradio --file=noradio.twitter.json

            Assignee:
            mathias@mongodb.com Mathias Stearn
            Reporter:
            ajsharp Alex Sharp
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: