* @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)
| 759 | * @returns {string} Jsonified string representing `obj`. |
| 760 | */ |
| 761 | function toJson(obj, pretty) { |
| 762 | return JSON.stringify(obj, toJsonReplacer, pretty ? ' ' : null); |
| 763 | } |
| 764 | |
| 765 | |
| 766 | /** |
no outgoing calls
no test coverage detected