Created
April 24, 2011 09:24
-
-
Save saturngod/939440 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)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment