docs: def json(self, **kwargs):
          """Decodes response as JSON."""
          encoding = detect_encoding(self.content[:4])
          value = self.content.decode(encoding)
  
          return simplejson.loads(value, **kwargs)