diff --git a/spec.html b/spec.html index c5022b2..c344695 100644 --- a/spec.html +++ b/spec.html @@ -45,7 +45,7 @@
The `parse` function parses a JSON text (a JSON-formatted String) and produces an ECMAScript language value. The JSON format represents literals, arrays, and objects with a syntax similar to the syntax for ECMAScript literals, Array Initializers, and Object Initializers. After parsing, JSON objects are realized as ECMAScript objects. JSON arrays are realized as ECMAScript Array instances. JSON strings, numbers, booleans, and null are realized as ECMAScript Strings, Numbers, Booleans, and *null*.
-The optional _reviver_ parameter is a function that takes twothree parameters, _key_ and _value_ and a _context_ object. It can filter and transform the results. It is called with each of the _key_/_value_ pairs produced by the parse and details of their corresponding Parse Node, and its return value is used instead of the original value. If it returns what it received, the structure is not modified. If it returns *undefined* then the property is deleted from the result.
The optional _reviver_ parameter is a function that takes twothree parameters, _key_ and _value_ and a _context_ object. It can filter and transform the results. It is called with each of the _key_/_value_ pairs produced by the parse and (for primitive values) details of their corresponding Parse Node, and its return value is used instead of the original value. If it returns what it received, the structure is not modified. If it returns *undefined* then the property is deleted from the result.