Made getJson() capable of reading gzip-encoded responses.