Today we take a brief tour into how to write a custom JSON encoder in Python.