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

Function toJson

test/angular/1.2/angular.js:1121–1124  ·  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} obj Inpu

(obj, pretty)

Source from the content-addressed store, hash-verified

1119 * @returns {string|undefined} JSON-ified string representing `obj`.
1120 */
1121function toJson(obj, pretty) {
1122 if (typeof obj === 'undefined') return undefined;
1123 return JSON.stringify(obj, toJsonReplacer, pretty ? ' ' : null);
1124}
1125
1126
1127/**

Callers 7

minErrFunction · 0.70
$HttpProviderFunction · 0.70
buildUrlFunction · 0.70
$interpolateFunction · 0.70
$RootScopeProviderFunction · 0.70
jsonFilterFunction · 0.70
angular.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected