import json


def util_json_get_value ( s_json, key ):
    """Returns value for supplied key in JSON document"""

    try: 
        t = json.loads(s_json, strict=False)
    except ValueError:
        return ''

    try: 
        value = t[key]
    except KeyError:
        return ''

    return value