I'm not sure I understand the question. Are you just trying to convert
the python dictionaries you get back from PyMongo to JSON documents?
If so just use json_util:
http://api.mongodb.org/python/current/api/bson/json_util.html
If you have Binary fields in your documents make sure you use the
latest version of PyMongo (2.4.1 as of this writing).
On Fri, Dec 21, 2012 at 11:02 AM, Ajay Muppuri <
ajay....@gmail.com> wrote:
> Hello,
>
> Is it possible to use mongoexport in json in python? I have a large set of
> documents within my mongodb collection and writing to a file takes a fair
> bit of time. I was wondering if I could run mongoexport within the python
> code on that collection to export it as json.
>
>
> Ajay
>
> --
> You received this message because you are subscribed to the Google
> Groups "mongodb-user" group.
> To post to this group, send email to
mongod...@googlegroups.com
> To unsubscribe from this group, send email to
>
mongodb-user...@googlegroups.com
> See also the IRC channel --
freenode.net#mongodb