Will it ever be the case that `task.task_output` could be invalid JSON? If so, you should put this in a try/catch and deal with that case; if not, it may help to add a comment explaining why we trust this output to be valid JSON.