KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
in Python 2.7+ I can use the object_pairs_hook in the builtin json module to change the type of the decoded objects. Is there anyway to do the same for lists? One option is to go through the objects that I get as arguments to the hook and replace them with my own list type, but is there any other, smarter way?
Tags (comma-separated)
Save Edits
Cancel