Return the function result in {"result": ...}