# Using Validator as a generic engine for file (json, CSV) based entity validation

**URL:** <https://discourse.hibernate.org/t/using-validator-as-a-generic-engine-for-file-json-csv-based-entity-validation/6902>\
**Category:** Hibernate Validator\
**Created:** [November 15, 2022, 12:30am UTC](https://discourse.hibernate.org/t/using-validator-as-a-generic-engine-for-file-json-csv-based-entity-validation/6902 "2022-11-15T00:30:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sam\_R](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/sam_r/32/2113_2.png) [@Sam\_R](https://discourse.hibernate.org/u/Sam_R)\
**Post date:** [November 15, 2022, 12:30am UTC](https://discourse.hibernate.org/t/using-validator-as-a-generic-engine-for-file-json-csv-based-entity-validation/6902/1 "2022-11-15T00:30:42Z")

</div>

Hi,

Is is possible to use the rich set of Validator provided by Hibernate to validate data from CSV or json by calling validators programmatically instead of defining as annotations on Java entities or having to force marshaling of the json/csv data into the POJO (with validation annotation or declarative annotations in XML?

Thanks,  
sam
