couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Lenz <cml...@gmx.de>
Subject Re: null
Date Thu, 08 Jan 2009 14:04:17 GMT
On 08.01.2009, at 15:01, Christopher Lenz wrote:
>> The absence of an "undefined" keyword leads me to the expectation  
>> that for JSON {} should be the same as {"foo":null}.
>
> No, "undefined" means that an object has no such property, whereas  
> {"foo":null} clearly *has* a "foo" property.
>
> I'm not sure what problem you're trying to solve here. If you need  
> to state that a JSON object doesn't have a property, simply omit it.  
> No need for an invalid keyword.

s/invalid/undefined

Cheers,
--
Christopher Lenz
   cmlenz at gmx.de
   http://www.cmlenz.net/


Mime
View raw message