Filters (removes) objects from document based on passed json-schema