src/streamlink/plugin/api/http_session.py
def json(cls, res, *args, **kwargs):
        """Parses JSON from a response."""
        # if an encoding is already set then use the provided encoding
        if res.encoding is None:
            res.encoding = cls.determine_json_encoding(res.content[:4])
        return parse_json(res.text, *args, **kwargs)
def json(cls, res, *args, **kwargs):
        # if an encoding is already set then use the provided encoding
        if res.encoding is None:
            res.encoding = cls.determine_json_encoding(res.content[:4])
        return parse_json(res.text, *args, **kwargs)
def json ( cls , res , * args , * * kwargs ) : # if an encoding is already set then use the provided encoding if res . encoding is None : res . encoding = cls . determine_json_encoding ( res . content [ : 4 ] ) return parse_json ( res . text , * args , * * kwargs )
Parses JSON from a response.
Parses JSON from a response .