Guidelines on using NSJSONSerialization
Guidelines on using NSJSONSerialization
- Subject: Guidelines on using NSJSONSerialization
- From: Alex Zavatone <email@hidden>
- Date: Thu, 19 Apr 2012 10:14:03 -0400
I'm wondering if there are any hard and fast basic rules on why an NSDictionary or NSArray would not be pass the [NSJSONSerialization isValidJSONObject: jDict]
test.
According to the docs, isValidJSONObject:, returns a Boolean value that indicates whether a given object can be converted to JSON data, so I assume I'm using this correctly.
I'm trying to output my mapKit annotation list to a JSON file and I'm rather surprised that the annotation list (even when added to a dictionary key as an object) fails to pass the test.
At this point, unless there's something simple, it will actually be faster to walk the dictionary myself.
Thanks in advance.
- Alex Zavatone
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden