The only reason I can think of is if this is something which one very rarely needs. Otherwise, I'd think those who regularly handle JSON files are able to write a one line program.
And the JS console was only an example. Other languages can also pretty print JSON trivially. E.g. python.
And the JS console was only an example. Other languages can also pretty print JSON trivially. E.g. python.