Compress a JSON response