def toString(self, memento): """ Returns a string that represents the ASGC memento object. @param memento: The ASGC memento object @return: string representing the ASGC memento """ return json.JsonWriter().write(memento)
def serialize(self, memento, serializationStream): """ Serializes the ASGC memento to the stream @param memento: the ASGC memento structure @param serializationStream: output stream where memento should be serialized to """ text = json.JsonWriter().write(memento) serializationStream.write(text)
def toString(self, memento): return json.JsonWriter().write(memento)
def serialize(self, memento, serializationStream): text = json.JsonWriter().write(memento) serializationStream.write(text)