Simple program which can receive unformatted JSON piped into it and then will format the JSON and write to stdout.
I used this to create an Apple Automator application which gets JSON text from the clipboard and formats the JSON and puts the formatted text back into the clipboard.