added more JSON and gzip utilities