reduce.py can reduce size of json object