make compressJson lazy