code: def response_to_json_dict(response, **kwargs):
      
      if response.encoding is None:
          response.encoding = 'utf-8'
      return json.loads(response.text, **kwargs)
docs: Standard place to convert responses to JSON.
  
      :param response: requests response object
      :param **kwargs: arguments accepted by json.loads
  
      :returns: dict of JSON response