From 5f3134a70e8742ec7793077f942dae3d2099068d Mon Sep 17 00:00:00 2001 From: Matt Gilson Date: Mon, 19 Sep 2016 08:36:25 -0700 Subject: [PATCH] docs(angular.toJson): describe your change... MDN seems to think that [JSON.stringify](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify) also accepts boolean arguments :-) --- src/Angular.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Angular.js b/src/Angular.js index ad68d3e128d5..dced06cc28b2 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -1223,7 +1223,7 @@ function toJsonReplacer(key, value) { * Serializes input into a JSON-formatted string. Properties with leading $$ characters will be * stripped since angular uses this notation internally. * - * @param {Object|Array|Date|string|number} obj Input to be serialized into JSON. + * @param {Object|Array|Date|string|number|boolean} obj Input to be serialized into JSON. * @param {boolean|number} [pretty=2] If set to true, the JSON output will contain newlines and whitespace. * If set to an integer, the JSON output will contain that many spaces per indentation. * @returns {string|undefined} JSON-ified string representing `obj`.