A reviver function transforms the results returned from the `parse` method of the JavaScript JSON API.
The reviver function is declared as an optional argument passed to the parse
method. After JSON parsing is complete, it is called for each member of the object. The return value of each call replaces the original value. If it returns undefined
, then the property is deleted from the result. If a member contains nested objects, then the nested objects are transformed before the parent object.