@apply_to_text_file
def jsonminify(data):
 data = json.dumps(json.loads(data), indent=None, separators=(',', ':'))
 return data

@ apply_to_text_file def jsonminify ( data ) : data = json . dumps ( json . loads ( data ) , indent = None , separators = ( ',' , ':' ) ) return data
minify json files .