Serialization, JSON, and Distributed Systems

Adrienne Domingus
2 min readDec 7, 2019
Photo by Jonathan Pielmayer on Unsplash. It’s pickles, because “Pickling” is a form of Python object serialization, even though we won’t talk about that today :)

Working with a teammate who was running into an error recently when testing their work in the staging environment, that they hadn’t seen when developing locally. This was the error they were seeing:

TypeError: <Object> is not JSON serializable

But, “I’m not calling json.dumps() on anything!” they said. And sure enough, they weren’t. But they were enqueueing…