From e98c87d681e50d64b50a43b450ec1fde1c752720 Mon Sep 17 00:00:00 2001 From: tjcrowder Date: Mon, 7 Sep 2009 13:02:46 +0100 Subject: [PATCH] doc: ported old doc example for Array#toJSON --- src/lang/array.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lang/array.js b/src/lang/array.js index 1df9322..c93e8b8 100644 --- a/src/lang/array.js +++ b/src/lang/array.js @@ -319,6 +319,11 @@ Array.from = $A; * Array#toJSON() -> String * * Returns a JSON string representation of the array. + * + * ### Example + * + * ['a', {b: null}].toJSON(); + * //-> '["a", {"b": null}]' **/ function toJSON() { var results = [];