I have some local JSON files which I'm bundling with the app. When Xcode builds the product and I look into the payload directory, I can see the JSON in plain text.
Is there a way to have Xcode compile the file in binary form, and then still be able to parse it with NSJSONSerialization?
I load the JSON file like this:
NSData *data = [[NSData alloc] initWithContentsOfFile:path];
The data is then converted to a JSON object:
id json = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:&error];
So could Xcode convert the JSON text file into binary form before adding it to the app package?