Format JSON

Takes JSON text and outputs a reformatted version: either minified (compact, all on one line) or pretty-printed with the indentation you choose.