How to omit fields when using Python JSONDecoder? or Python JSONDecoder omit fields - is there a clea

14 Replies, 1610 Views

Wow, didn’t expect so many options! The `object_pairs_hook` trick worked for my case—way cleaner than my post-filter mess.

Still curious about the `ijson` approach though. Anyone got a benchmark on speed vs `json` + hook for like 100MB JSON?

Also, that monkey-patch idea is terrifying. I love it.

Messages In This Thread



Users browsing this thread: 1 Guest(s)