code: def _json(self, response):
          
          if response.status_code == 204:
              return None
          try:
              return response.json()
          except ValueError as e:
              raise ValueError(
                  'Exception: %s\n'
                  'request: %s, response code: %s, response: %s' % (
                      str(e), response.request.url, response.status_code,
                      response.content,
                  )
              )
docs: JSON response from server.
  
          :param response: Response from the server
          :throws ValueError: from requests' response.json() error
          :return: response deserialized from JSON