users@jersey.java.net

Re: [Jersey] JSON in Jersey

From: John Lister <john.lister_at_kickstone.co.uk>
Date: Sun, 28 Feb 2010 22:00:05 +0000

Sorry for the email blast...
It looks like i'm encountering the same issue as
https://jersey.dev.java.net/issues/show_bug.cgi?id=296. I am interfacing
with none Jersey JSON libraries which barf on the {nill:true} form.
I'll try the jackson provider to see what happens..

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
>>
>>
>>
>>
>>
>>
>>
>>
>
>
>
>