A simple userscript that formats JSON by using a JSON.stringify(data, null, 2) function. It only runs if a page has proper Content-Type response header, e.g. application/json. It does not support syntax highlighting. It also sorts JSON keys alphabetically.
It's compatible with Userscripts, Tampermonkey, and other similar apps.