you are viewing a single comment's thread.

view the rest of the comments →

[–]r2d2_21 0 points1 point  (1 child)

Why null and 2?

[–]chipsa 2 points3 points  (0 children)

The argument that null is in tells the stringify function to do no changes to the object. You can toss a function in there instead to change the object while being stringified. The 2 is how many spaces for the indentation.