Add toArray() and toJson() at ValidationError