Shallow merge JSON documents with CouchDB documents.