TypeError:ObjectId(“”)不可序列化
这是我当前的代码段:
@application.route('/get_all_societies', methods=['GET']) def get_all_societies(): result = list(db['Societies'].find({}, {"_id": 0})) return jsonify(success=True, data=result)