Transform a class instance to plain object (ObjectIds become string)
Transform a class instance to json object (ObjectIds are not touched)
Transform a class instance to plain object (ObjectIds become string)