This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: how to import json file in mongodb using pymongo
Type: Stage: resolved
Components: Versions: 3rd party
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: pramod.jadhav, r.david.murray
Priority: normal Keywords:

Created on 2014-03-08 10:19 by pramod.jadhav, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg212926 - (view) Author: Pramod Jadhav (pramod.jadhav) Date: 2014-03-08 10:22
import sys
import envoy
from bson import json_util # Comes with pymongo
from pymongo import MongoClient
from pprint import pprint
import json
client = pymongo.MongoClient('mongodb://')
r = pymongo.MongoClient('mongoimport -h -p 33499 -d enron -c spectrumplus -u user -p user123 --file C:/Users/sachin/Documents/IPython /ch06-mailboxes/data/enron.mbox.json')
print 'json import sucessfully'
msg212933 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2014-03-08 14:22
This tracker is for reporting bugs in CPython and the Python standard library.  pymongo is not part of the standard library.  Please use the pymongo support channels for your question.  (Their help does not look like this is a bug report.)  You could also try try the pyhon-list mailing list.
Date User Action Args
2022-04-11 14:57:59adminsetgithub: 65069
2014-03-08 14:22:22r.david.murraysetstatus: open -> closed

versions: + 3rd party, - Python 2.7
nosy: + r.david.murray

messages: + msg212933
resolution: not a bug
stage: resolved
2014-03-08 10:22:54pramod.jadhavsetmessages: + msg212926
2014-03-08 10:19:11pramod.jadhavcreate