public DataTable getDetails(string filePath, string ObjAttr)
        {
            string jsonString = File.ReadAllText(fileName);
            //JArray jsonArr = JArray.Parse(jsonString);
            List <CharModel> obj = JsonConvert.DeserializeObject <List <CharModel> >(jsonString);
            //dynamic modelJson;
            ListToDataTable converter = new ListToDataTable();

            //CharModel modelObj = new CharModel();
            foreach (CharModel o in obj.Where(item => item.charName == modelName))
            {
                switch (ObjAttr)
                {
                case "model":
                    //CharModel modelJson = o;
                    collection = converter.ClassToDataTable <CharModel>(o);
                    break;

                case "action":
                    //List<Models.Action> modelJson = o.actions;
                    collection = converter.ToDataTable(o.actions);
                    break;

                case "sa":
                    //modelJson = o.specialAbilities;
                    collection = converter.ToDataTable(o.specialAbilities);
                    break;
                }
            }
            return(collection);
        }