/ Published in: Python
URL: http://stackoverflow.com/questions/3359546/how-do-i-create-json-file-from-plist-file
Expand |
Embed | Plain Text
import json from plistlib import readPlist import StringIO plist = open("source.plist","r").read() in_file = StringIO.StringIO(plist) plist_dict = readPlist(in_file) open("source.json","w").write(json.dumps(plist_dict))
You need to login to post a comment.
