JSON.stringify takes 3 parameters. The third parameter can be used to pretty-print the output. posted on 20.03.2020