How do I turn MongoDB query into a JSON?

The json module won’t work due to things like the ObjectID.

Luckily PyMongo provides json_util which …

… allow[s] for specialized encoding and
decoding of BSON documents into Mongo
Extended JSON’s Strict mode. This lets
you encode / decode BSON documents to
JSON even when they use special BSON
types.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)