Glossary: JavaScript Beyond the Basics
Reviver / replacer
Also written: reviver, replacer
A reviver is a function passed to `JSON.parse` that can change each value, for example turning date strings back into `Date`s. A replacer is passed to `JSON.stringify`, and an array of keys keeps only those keys.