Minifies blocks of JSON-like content into valid JSON by removing all whitespace and comments.