It can easily be achieved with an extension like JSON Viewer, which is also way more customizable than whatever browser developers would implement natively, given how many there are other feature requests that don't have workarounds.