def parse(self, stream, media_type, **options):
        data = stream.read().decode('utf-8')
        try:
            return json.loads(data)
        except ValueError as exc:
            msg = text_type(exc) % 'JSON parse error - %s'
            raise exceptions.ParseError(msg)
dataset/ETHPy150Open tomchristie/flask-api/flask_api/parsers.py/JSONParser.parse/swapped operands of `%`