src/sap.ui.core/src/sap/ui/model/base/ManagedObjectModel.js
function _stringify(vObject) {
		var sData = "", sProp;
		var type = typeof vObject;

		if (vObject == null || (type != "object" && type != "function")) {
			sData = vObject;
		} else if (isPlainObject(vObject)) {
			sData = JSON.stringify(vObject);
		} else if (vObject instanceof ManagedObject) {
			sData = vObject.getId();//add the id
			for (sProp in vObject.mProperties) {
				sData = sData + "$" + _stringify(vObject.mProperties[sProp]);
			}
		} else if (Array.isArray(vObject)) {
			for (var i = 0; vObject.length; i++) {
				sData = sData + "$" + _stringify(vObject);
			}
	    } else {
			Log.warning("Could not stringify object " + vObject);
			sData = "$";
		}

		return sData;
	}
function _stringify(vObject) {
		var sData = "", sProp;
		var type = typeof vObject;

		if (vObject == null || (type != "object" && type != "function")) {
			sData = vObject;
		} else if (isPlainObject(vObject)) {
			sData = JSON.stringify(vObject);
		} else if (vObject instanceof ManagedObject) {
			sData = vObject.getId();//add the id
			for (sProp in vObject.mProperties) {
				sData = sData + "$" + _stringify(vObject.mProperties[sProp]);
			}
		} else if (Array.isArray(vObject)) {
			for (var i = 0; vObject.length; i++) {
				sData = sData + "$" + _stringify(vObject);
			}
	    } else {
			Log.warning("Could not stringify object " + vObject);
			sData = "$";
		}

		return sData;
	}
function _stringify ( vObject ) { var sData = "" , sProp ; var type = typeof vObject ; if ( vObject == null || ( type != "object" && type != "function" ) ) { sData = vObject ; } else if ( isPlainObject ( vObject ) ) { sData = JSON . stringify ( vObject ) ; } else if ( vObject instanceof ManagedObject ) { sData = vObject . getId ( ) ; //add the id for ( sProp in vObject . mProperties ) { sData = sData + "$" + _stringify ( vObject . mProperties [ sProp ] ) ; } } else if ( Array . isArray ( vObject ) ) { for ( var i = 0 ; vObject . length ; i ++ ) { sData = sData + "$" + _stringify ( vObject ) ; } } else { Log . warning ( "Could not stringify object " + vObject ) ; sData = "$" ; } return sData ; }
Serialize the object to a string to support change detection

@param vObject
@returns {string} a serialization of the object to a string
@private
Serialize the object to a string to support change detection