ERRest errors as json?
ERRest errors as json?
- Subject: ERRest errors as json?
- From: Andrew Kinnie <email@hidden>
- Date: Tue, 03 May 2011 16:14:20 -0400
Greetings,
My ERRest implementation of an APN Server app is about to go live (as is the iPad app it supports), but I have been asked to see if I could have ERRest return errors as json rather than the default (which appears to be xml).
iOS apps are parsing the json returned when registering new devices via the server, but if there is a problem it returns xml and not json, so the parser crashes. We don't want to have to use an xml parser and try and handle when xml instead of json is returned, so I was wondering if there was some ERRest-friendly way to have the errors return json (with a key errorString or something like that).
I can probably hack my way around it, and have not seen an obvious solution, so I thought I'd ask if I missed something.
Andrew
PS: Wonder from about 2-3 weeks ago or sooner, Java 1.6, WO 5.4.3 and the server is a CentOS based VM.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden