dev@jersey.java.net

Re: JSON support

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Wed, 11 Jul 2007 09:29:50 +0200

Hi Peter,

Jakub is working on the JSON support for JAXB so he can chime in with
more specific details.


We will aim to do the following:

   public class MyResource {
     @ProduceMime("application/xml, application/json")
     JAXBObject getMyStuff() { ... }
   }

The JAXB entity provider will work out, from the selected content type
(to be implemented), to use XML or JSON (same should be the case when
using JAXB as the entity for a request to a PUT/POST).

Paul.

Peter Liu wrote:
> Hi,
>
> I would like to start a discussion on adding support for JSON in jersey.
> On my wish list for this feature is the ability to work off existing jaxb-
> annotated classes either directly or via some wrapper.
>
> Thanks.
>
> Peter
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: dev-help_at_jersey.dev.java.net
>

-- 
| ? + ? = To question
----------------\
    Paul Sandoz
         x38109
+33-4-76188109