MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / jsonFilter

Function jsonFilter

code/songhop/www/lib/angular/angular.js:17252–17259  ·  view source on GitHub ↗

* @ngdoc filter * @name json * @kind function * * @description * Allows you to convert a JavaScript object into JSON string. * * This filter is mostly useful for debugging. When using the double curly {{value}} notation * the binding is automatically converted to JSON. * * @param {*}

()

Source from the content-addressed store, hash-verified

17250 *
17251 */
17252function jsonFilter() {
17253 return function(object, spacing) {
17254 if (isUndefined(spacing)) {
17255 spacing = 2;
17256 }
17257 return toJson(object, spacing);
17258 };
17259}
17260
17261
17262/**

Callers

nothing calls this directly

Calls 2

isUndefinedFunction · 0.70
toJsonFunction · 0.70

Tested by

no test coverage detected