users@jersey.java.net

[Jersey] XmlJavaTypeAdapter when using JSON

From: sarat.pediredla <sarat.pediredla_at_gmail.com>
Date: Fri, 5 Dec 2008 08:46:54 -0800 (PST)

I have a custom DateAdapter which extends XmlAdapter to convert dates to and
from ISO 8601 date format to use Ruby-like timestamps when XML and JSON is
rendered and read.

It all seems to work fine when "reading" data and the ISO 8601 date renders
fine in both XML and JSON modes. However, when "posting" a new object, ISO
8601 dates only seem to work in XML and not JSON.

I was wondering if this is because of the XmlJavaTypeAdapter and if this is
not being triggered when unmarshalling JSON objects? Any views?
-- 
View this message in context: http://n2.nabble.com/XmlJavaTypeAdapter-when-using-JSON-tp1619181p1619181.html
Sent from the Jersey mailing list archive at Nabble.com.