Update task post route so that json deserialize annotation can be removed from task interface