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