Oh also i found out how to make function from database saved in JSON to run.
columns.forEach(col=>{if(col.formatter){col.formatter=JSONfn.parse(JSONfn.stringify(col.formatter));}});
If there's a better way to do this, I'd be very happy to help, because at the moment I haven't come up with anything else