The Python Oracle

How to make a class JSON serializable

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 5 Looping

--

Chapters
00:00 Question
00:23 Accepted answer (Score 692)
01:30 Answer 2 (Score 816)
02:12 Answer 3 (Score 236)
03:13 Answer 4 (Score 179)
03:47 Thank you

--

Full question
https://stackoverflow.com/questions/3768...

Accepted answer links:
[JSONEncoder]: https://docs.python.org/library/json.htm...
[json.dumps()]: https://docs.python.org/library/json.htm...
[JSONDecoder]: https://docs.python.org/library/json.htm...

Answer 3 links:
[jsonpickle]: http://jsonpickle.github.io/
[(link to jsonpickle on PyPi)]: http://pypi.python.org/pypi/jsonpickle/

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #json #serialization

#avk47