//create model if any if (p.colModel) { p.colModel = (p.colModel.indexOf("url:") != -1) ? yourJSONFuncHere(p.colModel) : p.colModel;