Tasks are serialised as JSON