[cvs-nhc98] patch applied (yhc): JSON/CouchDB predicates and retrieval functions