pub fn task_json_response(output: RunOutput) -> TaskResult