Dealing with the Type Error: ObjectId(”) is not JSON serializable error when working with MongoDB 1st September 2020 / By Vuyisile Learn how to serialize MongoDB ObjectId data types in Python.