users@jersey.java.net

Re: [Jersey] JSON in Jersey

From: John Lister <john.lister_at_kickstone.co.uk>
Date: Sun, 28 Feb 2010 21:54:58 +0000

BTW, using a value of null as I required seems to match the JSON spec,
whereas using {nill:true} looks to more closely mirror the XML output?

Thanks

John

Felipe Gaścho wrote:
> 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
>>
>>
>>
>>
>>
>>
>>
>>
>
>
>
>