From 38dbb88c41b1fd21b7170b1106249a1d731c5b6e Mon Sep 17 00:00:00 2001 From: Syed Shahbaz Ahmed Date: Mon, 24 Apr 2017 13:49:45 +0200 Subject: [PATCH] Update article.md --- 1-js/05-data-types/11-json/article.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/1-js/05-data-types/11-json/article.md b/1-js/05-data-types/11-json/article.md index fab0ea8e..ca9b53b0 100644 --- a/1-js/05-data-types/11-json/article.md +++ b/1-js/05-data-types/11-json/article.md @@ -185,7 +185,6 @@ let json = JSON.stringify(value[, replacer, space]) value : A value to encode. - replacer : Array of properties to encode or a mapping function `function(key, value)`. @@ -242,9 +241,9 @@ alert( JSON.stringify(meetup, *!*['title', 'participants', 'place', 'name', 'num */ ``` -Now everything excepts `occupiedBy` is serialized. But the list of properties is quite long. +Now everything except `occupiedBy` is serialized. But the list of properties is quite long. -Fortunately, we can use a function instead the array as `replacer`. +Fortunately, we can use a function instead of an array as the `replacer`. The function will be called for every `(key,value)` pair and should return the "replaced" value, which will be used instead of the original one.