Reduce the memory needed to make the json data dump