I think it will be very easy and not too hard to implement input validation by passing a string to use as a regexp. For example, a colmodel could be like:
I saw it, but i'm sending automatically-generated json data from a PHP class to generate the grids, and the json parser can't send functions, so it would be more helpful for me the regexp option because it's only string-based.
Anyway, it's just an idea, if you think it's unnecessary, I can implement it by myself.