DEV Community

Discussion on: The secret power of JSON stringify

Collapse
 
kenbellows profile image
Ken Bellows

I've been using JavaScript deeply for a long time and it's very rare that I learn something new about old parts of JavaScript, but you've taught me two new things! I knew about the replacer function, I knew about the indentation, I even knew about toJSON, but I had never heard of either the property whitelist array or the indentation string options before! Thanks for the knowledge! 👏👏👏

Collapse
 
sonicoder profile image
Gábor Soós

I have used the indentation for a long time, but that null value before it always bothered me 😀