On Mar 6, 2012, at 10:27 AM, Alex Zavatone wrote: > So I added the validation call: > > BOOL isTurnableToJSON = [NSJSONSerialization > isValidJSONObject: object] > But running this against the imported JSON result and against my JSON, a the > BOOL never returned 1. It was returned 0, even against JSON that converted > properly.
Weird. I’ve never used that method myself, though. You _are_ calling this on an NSArray or NSDictionary, not on the NSData containing JSON, right? —Jens
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com