Trying to convert a plist
file to JSON but plutil
is giving you a hard time?
I want the CellBroadcast
as JSON:
plutil -extract CellBroadcast json -o - test.plist
That fails despite it should not:
test.plist: invalid object in plist for destination format
The solution is to first extract to binary, then convert to JSON:
plutil -extract CellBroadcast binary1 -o - | plutil -convert json -o - -