public static ITableImplement getITableByJson(string tableName, string valJson) { ITableImplement ITable = new ITableImplement(tableName); JavaScriptSerializer jss = new JavaScriptSerializer(); Dictionary <string, object> valMap = jss.Deserialize <Dictionary <string, object> >(valJson); List <AttributeItem> items = new List <AttributeItem>(); foreach (var val in valMap) { items.Add(new AttributeItem(tableName, val.Key)); } ITable.Add(items.ToArray()); foreach (AttributeItem item in items) { ITable[item] = valMap[item.FieldName]; } return(ITable); }