users@jersey.java.net

[Jersey] Re: JSON serialization anomaly

From: <julian.triggs_at_astrazeneca.com>
Date: Wed, 11 Apr 2012 10:56:57 +0000 (GMT)

I've put in a JAXBContextResolver with rootUnwrapping(false) and the
json now looks as though there is a wrapper:-
{"userMappingArray":{"userMapping":[{"mosaicId":"51",

The JAXBContextResolver is available on the server via discovery of
the scanned base resource packages, on the client its in via the client
config and I can see it getting instantiated but the client
deserialization is still returning the contained list as null:-

11:56:16.765 [main] DEBUG c.a.r.g.c.misc.TryRestServiceClient - root =
astrazeneca.rd.gsm.ordering.azmosaicmapping._1.UserMappingArray
  userMappings = {null}

simply swapping media types via client call to application/xml works
fine

any ideas?