If its all right with you, let's figure out exactly what you need and 
what bugs exist so that you don't have to do manual json.

On 5/15/12 7:07 PM, Jim Stafford wrote:
> fyi...I ended up removing all built-in JSON marshalling and replacing
> with manual calls to Jettison for both demarshalling JSON inputs and
> marshalling JSON outputs before it was all over. I ran into cases
> where
> a) it worked fine using Jetty in the unit test/Maven environment and
> returned different formatted JSON when running deployed to JBoss 7

This is probably because AS7 comes with both Jettison and Jackson.  The 
Resteasy documentation talks about what you must do to force Jettison usage.

> b) XML was being returned instead of JSON in one case where I was
> using a cached JAXBContext to demarshal the JAXB class passed in (XML
> in, JSON out)
>

Ok, I'll double check this one.  Cache is supposed to be based on media 
type.

Thanks for your patience Jim,

Bill

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users

Reply via email to