Why does JSON.stringify refuse to format objects and keep everything on a single line?
<!DOCTYPE html>
<html>
<head>
<script>
var obj = {
"a" : "1547645674576457645",
"b" : "2790780987908790879087908790879087098",
"c" : "38907908709879087",
"d" : "A very long sentance or text1",
"e" : "A very long sentance or text2",
"f" : "A very long sentance or text3"
};
// pretty format trick
var myj=JSON.stringify(obj, null, 4);
//var myj=JSON.stringify(obj);
document.write(myj);
</script>
</head>
<body>
</body>
</html>