<html>
<body>
<h1>Using the <em>space</em> Parameter</h1>
<p>Insert the word "SPACE" for each white space:</p>
<pre id="demo"></pre>
<script>
var obj = { "name":"John", "age":"39", "city":"New York"};
var text = JSON.stringify(obj, null, "SPACE");
document.getElementById("demo").innerHTML = text;
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjson_stringify_space by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 17:39:11 GMT -->
</html>