users@jersey.java.net

Re: [Jersey] Proper way to read/write customized java types?

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Wed, 18 Feb 2009 16:54:46 +0100

On Feb 18, 2009, at 3:34 PM, Will Hoover wrote:

> I'm sorry for not being clear... I was referring to if there will be
> support
> for POJOs to Java in the future.
>

There are currently no concrete plans. I would like to consider it,
but i am not sure what technology would be best. Could you log an
issue so we can track this?

To me Jackson would be the first choice to look at. I am open to
suggestions. Jakub? Tatu? any ideas?

Paul.

> -----Original Message-----
> From: Paul.Sandoz_at_Sun.COM [mailto:Paul.Sandoz_at_Sun.COM]
> Sent: Wednesday, February 18, 2009 9:22 AM
> To: users_at_jersey.dev.java.net
> Subject: Re: [Jersey] Proper way to read/write customized java types?
>
>
> On Feb 18, 2009, at 3:09 PM, Will Hoover wrote:
>
>> Thanks Paul...
>>
>> Is there going to be support for this in the future?
>>
>
> If you mean will it continue to be in future releases of Jersey, yes
> it
> will. It will be maintained and not removed.
>
> Once a feature goes into a stable release of Jersey it is maintained
> going
> forward and we strive to retain backwards compatibility between
> releases.
>
> For the JSON conventions backwards compatibility is very important.
>
> Paul.
>
>> -----Original Message-----
>> From: Paul.Sandoz_at_Sun.COM [mailto:Paul.Sandoz_at_Sun.COM]
>> Sent: Wednesday, February 18, 2009 9:00 AM
>> To: users_at_jersey.dev.java.net
>> Subject: Re: [Jersey] Proper way to read/write customized java types?
>>
>> Hi Will,
>>
>> Currently the only way we support POJOs to JSON and back is in
>> conjunction with JAXB.
>>
>> See Jakub's blog entry:
>>
>> http://blogs.sun.com/japod/entry/configuring_json_for_restful_web
>>
>> See the sample here:
>>
>>
>> http://download.java.net/maven/2/com/sun/jersey/samples/json-from-
>> jaxb
>> /1.0.2
>> /json-from-jaxb-1.0.2-project.zip
>>
>> Note that for the JAXB "natural" convention to work you need to use
>> JAXB 2.1.10.
>>
>> Paul.
>>
>> On Feb 18, 2009, at 2:43 PM, Will Hoover wrote:
>>
>>> What is the "proper" way to convert POJOs to JSON and back (1.0.2)?
>>> I seen
>>> that TODO for "Supporting the Reading and Writing of Customized Java
>>> Types"
>>> (http://wikis.sun.com/display/Jersey/Advanced+JAX-RS+1.0+Features)
>>> and
>>> http://blog.refinn.com/category/jersey/ regarding the use of
>>> jackson.
>>> Is there an example of how to use this in Jersey?
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>