"Why is python json_dump_obj not working with my custom class?"
Hey folks!
So I’m trying to use python json_dump_obj to serialize my custom class, but it’s throwing errors like crazy.
I’ve got a simple class with a few attributes, but when I run json_dump_obj, it just spits out "TypeError: Object not serializable."
Am I missing something obvious? Do I need to implement some magic method or what?
Also, why are some of my attributes straight-up missing in the output?
Any tips or gotchas you’ve run into with python json_dump_obj?
Thanks in advance!
---
(Word count: ~80)
Hey folks!
So I’m trying to use python json_dump_obj to serialize my custom class, but it’s throwing errors like crazy.
I’ve got a simple class with a few attributes, but when I run json_dump_obj, it just spits out "TypeError: Object not serializable."
Am I missing something obvious? Do I need to implement some magic method or what?
Also, why are some of my attributes straight-up missing in the output?
Any tips or gotchas you’ve run into with python json_dump_obj?
Thanks in advance!
---
(Word count: ~80)
