move ConstraintViolationJson out from being an inner class. Make ValidationResult constructor public.