fixparsing of the data when mimetype is recognized by using request.get_json