Code Snippet to upload a directory of JSON files to MongoDB with Ruby.