def parse_json(self, http_response):
    try:
        if Exchange.is_json_encoded_object(http_response):
            return json.loads(http_response)
    except ValueError:
        pass
def parse_json(self, http_response):
    try:
        if Exchange.is_json_encoded_object(http_response):
            return json.loads(http_response)
    except ValueError:
        pass