Add support for compressed JSON output