users@jersey.java.net

Re: [Jersey] JSON in Jersey

From: Felipe Gaścho <fgaucho_at_gmail.com>
Date: Sun, 28 Feb 2010 22:44:03 +0100

please post again your class definition...

but I checked here and it seems to be {nill:true}

an example of my own code:

curl -XGET -HAccept:application/json
http://fgaucho.dyndns.org:8080/arena-http/homework



On Sun, Feb 28, 2010 at 10:39 PM, John Lister
<john.lister_at_kickstone.co.uk> wrote:
> Felipe Gaścho <fgaucho_at_gmail.com> wrote:
>>>
>>> you need natural notation...........
>
> Ok, I've got natural notation working, but there is still a problem:
>
> I now get:
> {
>  aValue: 123,
>  nullValue: {
>   nill: true
>  }
> }
>
>
> whereas I would like to have
> {
>  aValue: 123,
>  nullValue: null
> }
>
>
> Any ideas?
>
> Thanks
>
> John
>
>
>
>
>
>
>



-- 
------------------------------------------
   Felipe Gaścho
   10+ Java Programmer
   CEJUG Senior Advisor