Skip to content

Instantly share code, notes, and snippets.

@williamratcliff
Forked from saturngod/plist2json.py
Created April 28, 2011 20:07
Show Gist options
  • Save williamratcliff/947200 to your computer and use it in GitHub Desktop.
Save williamratcliff/947200 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))
print "hi"
@williamratcliff
Copy link
Author

This is my version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment