Added code to deserialize tasks from JSON