dev@jersey.java.net

Re: [Jersey] JSON Namespace prefix separator

From: Jakub Podlesak <Jakub.Podlesak_at_Sun.COM>
Date: Mon, 22 Mar 2010 08:52:01 +0100

Hi Timo,

i am sorry for delayed response. Currently there is no way to configure
the separator, it is hardcoded
in the JsonXmlStreamWriter#getEffectiveName/JsonXmlStreamReader#createQName methods.

It should be quite straightforward to add such a configuration option.
Could you please file a RFE [1]?

Thanks,

~Jakub

[1]https://jersey.dev.java.net/issues/

On Fri, Mar 12, 2010 at 11:38:34AM +0100, Wolf, Timo wrote:
> Hello,
>
> I am using the JSONConfiguration.MappedBuilder to configure the JSON format with xml2JsonNs(...). The resulting JSON uses "." to separate the namespace prefix from the element name.
>
> I want to use a ':' as separator to get the format
> {.. "rdf:about" : "http:..." }
>
> Is there a way to configure the used namespace separator?
>
> Thanks a lot,
>
> Timo
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: dev-help_at_jersey.dev.java.net
>

-- 
http://blogs.sun.com/japod