Load JSON data into this Task

def from_json(self, json_data):
        """
        Load JSON data into this Task
        """
        try:
            data = json_data.decode()
        except Exception:
            data = json_data
        self.__dict__ = json.loads(data)