json encoding a list of serializable objects

You can convert a list of the __dict__ member as json:

    def saveJson(self):
        return json.dumps([t.__dict__ for t in self.__themes])

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top