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