src/sap.ui.core/src/sap/ui/model/odata/_AnnotationHelperBasics.js
function (vValue) {
			var sJSON;

			if (typeof vValue !== "function") {
				try {
					sJSON = Basics.toJSON(vValue);
					// undefined --> undefined
					// null, NaN, Infinity --> "null"
					// all are correctly handled by String
					if (sJSON !== undefined && sJSON !== "null") {
						return sJSON;
					}
				} catch (e) {
					// "converting circular structure to JSON"
				}
			}
			return String(vValue);
		}
function (vValue) {
			var sJSON;

			if (typeof vValue !== "function") {
				try {
					sJSON = Basics.toJSON(vValue);
					// undefined --> undefined
					// null, NaN, Infinity --> "null"
					// all are correctly handled by String
					if (sJSON !== undefined && sJSON !== "null") {
						return sJSON;
					}
				} catch (e) {
					// "converting circular structure to JSON"
				}
			}
			return String(vValue);
		}
function ( vValue ) { var sJSON ; if ( typeof vValue !== "function" ) { try { sJSON = Basics . toJSON ( vValue ) ; // undefined --> undefined // null, NaN, Infinity --> "null" // all are correctly handled by String if ( sJSON !== undefined && sJSON !== "null" ) { return sJSON ; } } catch ( e ) { // "converting circular structure to JSON" } } return String ( vValue ) ; }
Stringifies the value for usage in an error message. Special handling for functions and
object trees with circular references.

@param {any} vValue the value
@returns {string} the stringified value
Stringifies the value for usage in an error message . Special handling for functions and object trees with circular references .