def json_checker(name, prop):
    from . import AWSHelperFn
    if isinstance(prop, basestring):
        json.loads(prop)
        return prop
    elif isinstance(prop, dict):
        return json.dumps(prop)
    elif isinstance(prop, AWSHelperFn):
        return prop
    else:
        raise ValueError(('%s must be a str or dict' % name))
def json_checker(name, prop):
    from . import AWSHelperFn
    if isinstance(prop, basestring):
        json.loads(prop)
        return prop
    elif isinstance(prop, dict):
        return json.dumps(prop)
    elif isinstance(prop, AWSHelperFn):
        return prop
    else:
        raise ValueError(('%s must be a str or dict' % name))