JSON formatter & validator

Check JSON for errors, pretty-print it, or squeeze it onto one line.