This patch allows emitting objects over multiple lines with indentation, for applications that might need it. For example, a CLI tool might have a --pretty or --debug flag which generates more readable output.
It adds a second, optional argument to stringify. It's passed as JSON.stringify's third argument, which controls indentation.
This patch allows emitting objects over multiple lines with indentation, for applications that might need it. For example, a CLI tool might have a --pretty or --debug flag which generates more readable output.
It adds a second, optional argument to
stringify
. It's passed asJSON.stringify
's third argument, which controls indentation.