Is there a command line tool available for converting .plist files to JSON?
If not, what would be the approach for creating one using Objective-C or C on a Mac? For
The code is fairly simple to do this:
NSArray* array = [[NSArray arrayWithContentsOfFile:[@"~/input.plist" stringByExpandingTildeInPath]]retain];
SBJsonWriter* writer = [[SBJsonWriter alloc] init];
NSString* s = [[writer stringWithObject:array] retain];
[s writeToFile:[@"~/output.json" stringByExpandingTildeInPath] atomically:YES];
[array release];
I never got around to making it accept arguments as I only needed to do 3 files.