>>> import pymongo
>>> import json
>>> connection = pymongo.Connection()
>>> coll = connection.test.pyfoo
>>> s = "{ \"name\": \"eliot\" }"
>>> coll.insert( json.loads( s ) )
ObjectId('4d1ffda57dc7a6fb63000000')
>>> coll.find_one()
{u'_id': ObjectId('4d1ffda57dc7a6fb63000000'), u'name': u'eliot'}
>>>
> --
> 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.
> For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
>
>