Humans. We’re lazy. We also like things to be aesthetically pleasing. OK, Maybe that’s just me.
Using try/catch works fine.
But this is much nicer!
How about JSON.stringify? Yup.
It also accepts all the regular arguments that can be passed to the parse and stringify functions which is an added bonus and pretty useful.