Skip to content

Instantly share code, notes, and snippets.

View wizard-28's full-sized avatar
🗝️
0x51481E2CB03BF45A

Sourajyoti Basak wizard-28

🗝️
0x51481E2CB03BF45A
View GitHub Profile
@KinoAR
KinoAR / json_minify.py
Last active March 23, 2023 18:49
A JSON minify script written in Python.
#!/usr/bin/env python3
"""JSON minify program. """
import json # import json library
import sys # import sys library
def minify(file_name):
"Minify JSON"
file_data = open(file_name, "r", 1).read() # store file info in variable
json_data = json.loads(file_data) # store in json structure