MCPcopy Create free account
hub / github.com/cafebazaar/blacksmith / jsonFilter

Function jsonFilter

web/static/bower_components/angular/angular.js:19062–19069  ·  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

19060 *
19061 */
19062function jsonFilter() {
19063 return function(object, spacing) {
19064 if (isUndefined(spacing)) {
19065 spacing = 2;
19066 }
19067 return toJson(object, spacing);
19068 };
19069}
19070
19071
19072/**

Callers

nothing calls this directly

Calls 2

isUndefinedFunction · 0.85
toJsonFunction · 0.85

Tested by

no test coverage detected