Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Admin9705's full-sized avatar
🤣
PlexGuide.com Coding - Noctis FFXV

Admin9705 Admin9705

🤣
PlexGuide.com Coding - Noctis FFXV
View GitHub Profile
@Admin9705
Admin9705 / save-file.py
Created October 25, 2018 00:27 — forked from keithweaver/save-file.py
Save JSON file with Python
import json
def writeToJSONFile(path, fileName, data):
filePathNameWExt = './' + path + '/' + fileName + '.json'
with open(filePathNameWExt, 'w') as fp:
json.dump(data, fp)
# Example
data = {}