Python serializable objects json [duplicate]
Write your own encoder and decoder, which can be very simple like return __dict__ e.g. here is a encoder to dump totally recursive tree structure, you can enhance it or use as it is for your own purpose import json class Tree(object): def __init__(self, name, childTrees=None): self.name = name if childTrees is None: childTrees = … Read more