def _get_result(self, data):
        result = data.get('data', {'result': {}}).get('result', '{}')
        try:
            result = json.loads(result)
        except __HOLE__:
            # if json.loads fails then very return result as-is. Should not happen.
            return result
        return FORMATTERS.get(data['runner_ref'], format_default_result)(result)
dataset/ETHPy150Open StackStorm/st2contrib/packs/hubot/actions/post_result.py/PostResultAction._get_result