Skip to content

Instantly share code, notes, and snippets.

@saturngod
Created April 24, 2011 09:24
Show Gist options
  • Save saturngod/939440 to your computer and use it in GitHub Desktop.
Save saturngod/939440 to your computer and use it in GitHub Desktop.
Plist to Json
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