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/

Reply via email to