-
-
Save williamratcliff/947200 to your computer and use it in GitHub Desktop.
Plist to Json
This file contains 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
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)) | |
print "hi" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is my version