oxjs/tools/geo/py/fix_json.py
2011-10-04 02:26:24 +00:00

9 lines
No EOL
188 B
Python

import json
f = open('../json/countries.json')
data = json.loads(f.read())
f.close()
f = open('../json/countries.json', 'w')
f.write(json.dumps(data, indent=4, sort_keys=True))
f.close()