New to MongoDb and Python (webapp2). So, I was fetching some data from a mongodb database. But I was unable to use json.dumps on the r
webapp2
json.dumps
Simple Solution
// Use dumps from bson.json_util: from bson.json_util import dumps @app.route("/") def home_page(): booking = dumps(mongo.db.bookings.find()) print booking return booking