* @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 con
()
| 20552 | * |
| 20553 | */ |
| 20554 | function jsonFilter() { |
| 20555 | return function (object, spacing) { |
| 20556 | if (isUndefined(spacing)) { |
| 20557 | spacing = 2; |
| 20558 | } |
| 20559 | return toJson(object, spacing); |
| 20560 | }; |
| 20561 | } |
| 20562 | |
| 20563 | /** |
| 20564 | * @ngdoc filter |
nothing calls this directly
no test coverage detected