The best way to do this (on os x) is to use the command line tool, plutil.
It is used as follows:
plutil -convert xml1 filenameToConvert -o outputFilename
These are the options for "-convert": xml1, binary1, json. For this we will use json. For this command, you must be in the same directory as the plist file. For this test, we will convert test.plist (an xml file created by xcode in xml format) to json. It will create a file called test.json:
plutil -convert json test.plist -o test.json
to convert it back we would go:
plutil -convert xml1 test.json -o test.plist
source share