adding a json/document comparator