def to_json_type(self):
        """
        Return a dictionary for the document with values converted to JSON safe
        types.
        """
        document_dict = self._json_safe(self._document)
        self._remove_keys(document_dict, self._private_fields)
        return document_dict
def to_json_type ( self ) : document_dict = self . _json_safe ( self . _document ) self . _remove_keys ( document_dict , self . _private_fields ) return document_dict
Return a dictionary for the document with values converted to JSON safe
        types.