Fixed error : raise TypeError(repr(o) + " is not JSON serializable") , TypeError: ObjectId('') is not JSON serializable