MCPcopy Index your code
hub / github.com/angular-ui/ui-grid / toJson

Function toJson

lib/test/angular/1.6.7/angular.js:1446–1452  ·  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 {Object|Array|Date|string|number|boolean}

(obj, pretty)

Source from the content-addressed store, hash-verified

1444 * See https://github.com/angular/angular.js/pull/14221 for more information.
1445 */
1446function toJson(obj, pretty) {
1447 if (isUndefined(obj)) return undefined;
1448 if (!isNumber(pretty)) {
1449 pretty = pretty ? 2 : null;
1450 }
1451 return JSON.stringify(obj, toJsonReplacer, pretty);
1452}
1453
1454
1455/**

Callers 4

stringifyFunction · 0.70
serializeValueFunction · 0.70
$HttpProviderFunction · 0.70
jsonFilterFunction · 0.70

Calls 2

isUndefinedFunction · 0.70
isNumberFunction · 0.70

Tested by

no test coverage detected