mongoimport: option to support an array of json objects

XMLWordPrintableJSON

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

      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 Stearn
            Reporter:
            Alex Sharp
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: