Thanks Shane. Yes, by doing the following, it worked.
from bson.json_util import loads @app.route(“/some-endpoint”, methods=[“POST”]) def some_handler(): data = loads(request.data)