users@jersey.java.net

Re: [Jersey] Unmarshalled JSON not populating original class is was marshalled from.

From: Paul Taylor <paul_t100_at_fastmail.fm>
Date: Wed, 06 Jan 2010 06:56:25 +0000

Jakub Podlesak wrote:
> Please try:
>
> Map<String, String> nsMap = new HashMap<String, String>();
> nsMap.put("http://www.w3.org/2001/XMLSchema-instance", "xsi");
> nsMap.put("http://musicbrainz.org/ns/mmd-2.0#", "mmd");
> nsMap.put("http://musicbrainz.org/ns/ext#-2.0", "ext");
>
> JSONConfiguration.mapped().rootUnwrapping(false).xml2JsonNs(nsMap).build();
>
> If that does not work i will need a reproducible test case.
> Please let me know how it works.
>
> Thanks,
>
> ~Jakub
>
>
Hi Jakub

Yes that does work, thankyou very much for your efforts , its just a
shame how fiddly it is

Paul