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

mongoimport: option to support an array of json objects

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.5.3
    • 1.5.1
    • None
    • None
    • os x

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: