6

Google Chrome has, for a little while now, had this very convenient option to format (aka pretty-print) URLs that return JSON.

While is is good, it's quite annoying to keep on refreshing and clicking on the button every time. Is there a way to make this checkbox permanently checked as it would be a sane default?

Google Chrome pretty-print

music2myear
  • 49,799

1 Answers1

2

I would recommend using an extension for this purpose. For example, JSON formatter. On pages with JSON Content-Type headers, it removes the default Chrome .json-formatter-container element and instead adds own improved formatting, including prettified whitespaces, coloring and folding.

Formatting example

As of today, there's no option for autochecking the in-built Chrome option as far as I see. It's not even clickable programatically, from my experiments.

Destroy666
  • 12,350