a simple comparator for json files that reside in couchdb