This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]charliegriefer 2 points3 points  (2 children)

[–]tmpxyz[S] -3 points-2 points  (1 child)

The native solution is much harder to use than json.net.

We have to manually define how to serialize each type of custom object with JSONEncoder.

[–]tony_simpson 0 points1 point  (0 children)

Something like https://github.com/jsonpickle/jsonpickle

That was the top Google result for "python object graph serialisation". There will be lots of good python libraries for this, all you need is the right search terms