This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |