Skip to content

Instantly share code, notes, and snippets.

View geraldoramos's full-sized avatar

Geraldo Ramos geraldoramos

View GitHub Profile
import simplejson
import json
def put(data, filename):
try:
jsondata = simplejson.dumps(data, indent=4, skipkeys=True, sort_keys=True)
fd = open(filename, 'w')
fd.write(jsondata)
fd.close()
except: