Run a task from the json format.