On Nov 23, 2014, at 11:15 PM, Jens Alfke wrote:

> (I spent four years of my life immersed in RSS feed parsing, and acquired a 
> solid contempt for the ability of the average web developer to construct a 
> valid feed. You would not believe how many messed-up feeds there are in the 
> real world.)
> 
> —Jens


XML feeds, you say?

On Friday, we ran into an issue where our iOS app produced an obscure error 
when our app was reactivated but our Android app didn't report the same issue.

On iOS, the error that was reported was "control character at position 1072", 
or something to that effect. We were parsing results from a JSON URL, not an 
XML feed.  Well, our server guys put up a JSON file that we simply had to fetch 
from the server, but didn't bother to run it through JSONLint.  What happened 
was that one of out text strings within the JSON was so long, it was scrolling 
off the screen.  Obviously, their editor didn't have this advanced feature 
called line wrap and the person typing in the JSON pressed enter in the middle 
of the line so he could see the whole string.

The Android parser doesn't seem to care about return/enter characters, but the 
iOS JSON parser sure does.  

Fun times when your web guys hand enter the JSON and don't bother to validate 
it.

And this is in a product that was supposed to ship on last Friday.  

Misery obviously loves company.

Cheers,
- Alex
_______________________________________________

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

Reply via email to