Re: JSON validator for Xcode
Re: JSON validator for Xcode
- Subject: Re: JSON validator for Xcode
- From: Alex Zavatone <email@hidden>
- Date: Tue, 06 Mar 2012 13:27:02 -0500
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.
Has anyone gotten this to work?
On Mar 6, 2012, at 11:38 AM, Alex Zavatone wrote:
> I'm in the middle of converting some data to JSON and have successfully run my files through the JSONLint validator (http://jsonlint.com/).
>
> However, when trying to convert these files into serialized JSON in Xcode, the JSON does not pass the isValidJSONObject test, returning NO.
>
> Of course I can plow through the data structure by hand, but I was wondering if there is a way to get more data on just what the reason is why this data fails or if there is an OC friendly JSON validator out there in the wilds somwhere.
>
>
> TIA,
> - 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
_______________________________________________
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