I design and build websites with a focus on standards, performance, and
accessibility. With a decade of professional experience — in-house and
remote — I've delivered for everyone. Whether it's
PWAs, WordPress, or full-stack
frameworks, I have the know-how to help.
Did you know that JSON.stringify and JSON.parse can take more than one argument?
Perhaps like me you’ve done:
To output readable JSON with 2 space formatting — the correctly amount of whitespace. But what is that null all about? Surely I’ve researched this before and forgotten.
JSON basics
Standard JSON values include the primitives:
boolean
null
number
string
And then array and object collections […]