MCPcopy Create free account
hub / github.com/apache/cloudstack / toJson

Function toJson

tools/ngui/static/js/lib/angular.js:761–763  ·  view source on GitHub ↗

* @ngdoc function * @name angular.toJson * @function * * @description * Serializes input into a JSON-formatted string. * * @param {Object|Array|Date|string|number} obj Input to be serialized into JSON. * @param {boolean=} pretty If set to true, the JSON output will contain newlines and white

(obj, pretty)

Source from the content-addressed store, hash-verified

759 * @returns {string} Jsonified string representing `obj`.
760 */
761function toJson(obj, pretty) {
762 return JSON.stringify(obj, toJsonReplacer, pretty ? ' ' : null);
763}
764
765
766/**

Callers 5

$interpolateFunction · 0.85
$RootScopeProviderFunction · 0.85
$HttpProviderFunction · 0.85
buildUrlFunction · 0.85
jsonFilterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected