def dump_value(v):
    meta = {}
    e = v.event
    if e:
        for name in list(set(dir(e)) - META_EXCLUDE):
            meta[name] = getattr(e, name)

    data = {
        "id": v.node_call_id,
        "errors": v.errors,
        "value": v._value,
        "meta": meta
    }
    return json.dumps(data)
dataset/ETHPy150Open circuits/circuits/circuits/node/utils.py/dump_value/original