'Common method for requesting JSON response
:param path:
:return:'

def get_json(self, path, params=None):

    url = (self.api_template_url % path)
    request = self.web_session.get(url, params=params)
    try:
        result = request.json()
    except ValueError:
        log.debug(u'Response    from    %s    was    not    JSON    encoded.    Attempting    deep    inspection...', path)
        try:
            last_line = request.text.splitlines()[(-1)]
            result = json.loads(last_line)
        except (ValueError, IndexError):
            log.warning(u"Server    response    doesn't    contains    any    JSON    encoded    response.")
            raise
    T411RestClient.raise_on_fail_response(result)
    return result
