def METHOD_NAME(self, data):
    try:
        return json.loads(data.replace("'", '"'))
    except (json.JSONDecodeError, TypeError) as err:
        self._logger.debug('Fail to parse data %s to JSON. Reason %s.', data, err)
    except Exception as err:  # pylint: disable=broad-except
        self._logger.debug('Fail to parse data %s to JSON. Unexpected reason %s.', data, err)