def _encode_view_options(options):
    retval = {}
    for name, value in options.items():
        if name in ('key', 'startkey', 'endkey') \
                or not isinstance(value, util.strbase):
            value = json.encode(value)
        retval[name] = value
    return retval
Override for doing custom completion handling for a larger class of tasks
dataset/ETHPy150Open djc/couchdb-python/couchdb/client.py/_encode_view_options--crossover with--dataset/ETHPy150Open spotify/luigi/luigi/task.py/Task.on_success