MCPcopy Create free account
hub / github.com/OpenReservation/OpenReservation / toJson

Function toJson

OpenReservation/wwwroot/Scripts/angular.js:1237–1243  ·  view source on GitHub ↗

* @ngdoc function * @name angular.toJson * @module ng * @kind function * * @description * Serializes input into a JSON-formatted string. Properties with leading $$ characters will be * stripped since angular uses this notation internally. * * @param {Obje

(obj, pretty)

Source from the content-addressed store, hash-verified

1235 * @returns {string|undefined} JSON-ified string representing `obj`.
1236 */
1237 function toJson(obj, pretty) {
1238 if (isUndefined(obj)) return undefined;
1239 if (!isNumber(pretty)) {
1240 pretty = pretty ? 2 : null;
1241 }
1242 return JSON.stringify(obj, toJsonReplacer, pretty);
1243 }
1244
1245 /**
1246 * @ngdoc function

Callers 4

serializeValueFunction · 0.85
$HttpProviderFunction · 0.85
stringifyFunction · 0.85
jsonFilterFunction · 0.85

Calls 2

isUndefinedFunction · 0.85
isNumberFunction · 0.85

Tested by

no test coverage detected