users@jersey.java.net

[Jersey] Re: how to rename XmlRootElement in JSON

From: Maxrunner <joao.rossa_at_gmail.com>
Date: Thu, 9 Jun 2011 11:39:40 -0700 (PDT)

Where do i use the outputstreamwriter? in the context resolver or in the
resource class?

regards,

On Thu, Jun 9, 2011 at 7:30 PM, Cowtowncoder [via Jersey] <
ml-node+6459099-1484101709-73314_at_n2.nabble.com> wrote:

> On Thu, Jun 9, 2011 at 3:05 AM, Maxrunner <[hidden email]<http://user/SendEmail.jtp?type=node&node=6459099&i=0>>
> wrote:
> > IS it possible to encode the data in iso-8859-1 ?
>
> (related to the other response)
>
> Although ISO-8859-1 (and other Latin-x encodings) are not valid for
> JSON, one can create a Writer
> (new OutputStreamWriter(stream, "ISO-8859-1")) and pass that to
> Jackson; or use a StringWriter, serialize, take String, return that.
> So it is possible, just not convenient.
>
> -+ Tatu +-
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://jersey.576304.n2.nabble.com/how-to-rename-XmlRootElement-in-JSON-tp6173292p6459099.html
> To unsubscribe from how to rename XmlRootElement in JSON, click here<http://jersey.576304.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=6173292&code=am9hby5yb3NzYUBnbWFpbC5jb218NjE3MzI5MnwyMDYzODA1MDkw>.
>
>


--
View this message in context: http://jersey.576304.n2.nabble.com/how-to-rename-XmlRootElement-in-JSON-tp6173292p6459135.html
Sent from the Jersey mailing list archive at Nabble.com.