couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sven Helmberger <>
Subject null
Date Thu, 08 Jan 2009 13:21:27 GMT

When I was writing jcouchdb, I came across the fact that it seemed to 
make difference whether the _rev field just wasn't there or if it was 
null, something that made me wonder.

The problem for me was solved with the "ignoreIfNull" feature in 
jcouchdb, but I'd like to ask the question in general:

Shouldn't couchdb treat null and undefined values the same?

I am aware that there is in fact a difference in javascript, but since 
there is no "undefined" keyword for JSON, I would argue that that should 
not be the case for JSON and couchdb.

Sven Helmberger

View raw message