Skip to content

Convert a plist to JSON but including binary value support! Unlike the builtin 'plutil -convert json'

Notifications You must be signed in to change notification settings

varenc/plist2json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

plist2json - with binary support

Convert a plist to JSON including binary values! (unlike plutil -convert json)

  • This script converts a plist file to JSON. Either xml or binary plists are supported.
  • It can take a file over STDIN or as the first argument
  • It's key improvement over the built-in plutil -convert json is that it can handle plists with binary data.
  • Binary values are just converted to strings with str() and appear in the JSON output as "b\"\\x00\\x10\\xfa\\xff\\x00...\""

Example usage:

$ plist2json.py /path/to/file.plist
$ cat /path/to/file.plist | plist2json.py

About

Convert a plist to JSON but including binary value support! Unlike the builtin 'plutil -convert json'

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages