public JsonResult skills(string skilltype) { string data = GetAPI.GetSkillTypeData(skilltype); String[] skillsList = null; if (data != "Not Found") { skillsList = data.Split(new String[] { "," }, StringSplitOptions.None); return(Json(skillsList, JsonRequestBehavior.AllowGet)); } return(Json(false, JsonRequestBehavior.AllowGet)); }