Skip to content

Instantly share code, notes, and snippets.

View nhridoy's full-sized avatar
🎯
Focusing

Nahidujjaman Hridoy nhridoy

🎯
Focusing
View GitHub Profile
@nhridoy
nhridoy / JSON_MINIFIER.py
Created April 13, 2022 04:34
Python Script to minify JSON files
import os
import json
def minify(filename):
newname = filename.replace('.json', '.min.json') # Output file name
new_file_location = os.path.join(
'./compressed/', newname) # Output file location
with open(filename, encoding="utf8") as fp:
print("Compressing file: " + filename)