Serializes the given object into pseudo-JSON meaning it's trying to create a JSON representation as far as possible
but falling back to the given object's Object.toString() method if it's not serializable.
Serializes the given object into pseudo-JSON meaning it's trying to create a JSON representation as far as possible
but falling back to the given object's Object.toString() method if it's not serializable. Useful for
printing raw Documents containing complex values before actually converting them into Mongo native types.