Nice Json Formatter Extension for Safari 12, when opening a webpage that only contains JSON content, the extension will format it nicely. It contains a switch to show the original content, and an option to copy it to your clipboard.