Reading and writing json strings to gzip files.