Added option to compress json files