DEV Community

Adam Crockett 🌀
Adam Crockett 🌀

Posted on

4 1

One min tips: JSON second parameter

Did you know that many of your favourite and commonly used functions such as JSON.stringify and JSON.parse have a second parameter, for these two, it's supposed to be a function to intercept the value of and modify or even hide it in stringification or parsing.

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay