I seem to get the same as you, what looks like a subclass under the
value which has {nill:true} in it. I'd like to return a single "null" value.
eg: required
{
nullValue : null
}
I (and you) get
{
nullValue: {
nill : true
}
}
Is the former possible?
I can post my classes, but they are pretty much as in your blog post
Thanks
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
>>
>>
>>
>>
>>
>>
>>
>>
>
>
>
>