https://tutorial.eyehunts.com/js/json-stringify-replacer-function-example-code/
JSON stringify replacer function | Example code