On Wed, Jan 06, 2010 at 01:01:04PM +0100, Paul Sandoz wrote:
>
> On Jan 6, 2010, at 12:50 PM, Paul Taylor wrote:
>
> >Paul Sandoz wrote:
> >>
> >>On Jan 6, 2010, at 8:45 AM, Jakub Podlesak wrote:
> >>
> >>>On Wed, Jan 06, 2010 at 06:56:25AM +0000, Paul Taylor wrote:
> >>>>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
> >>>
> >>>Great, thanks for the confirmation. Hmmm, you are right, there
> >>>should be
> >>>at least some kind of tooling support for this.
> >>>
> >>
> >>What about using the natural convention?
> >>
> >>Paul.
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> >>For additional commands, e-mail: users-help_at_jersey.dev.java.net
> >>
> >>
> >Paul, I might be misundertsning you but I was originally using
> >natural (return new
> >JSONJAXBContext(JSONConfiguration.natural().build(),
> > "org.musicbrainz.mmd2");
> >
> >and it wasnt working which is why I posted in the firt place
> >
>
> You understand me :-) Ah yes, i see the email now.
>
> Jakub, is there a bug in the natural convention support?
I think so. Probably related to the second schema usage.
~Jakub
>
> The natural convention is designed to not require such configuration
> and tooling and in effect make the original JAXB convention redundant.
>
> Paul.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
--
http://blogs.sun.com/japod