

def to_json(self, value):
    if isfunction(value):
        function = SerializableFunction(value)
    elif (not value):
        function = SerializableFunction()
    else:
        function = value
    return function.dumps()

dataset/ETHPy150Open dimagi/commcare-hq/corehq/ex-submodules/couchexport/util.py SerializableFunctionProperty.to_json/original