/// <summary> /// 该方法适用于v3.0.0之后版本调用(After) /// 其他版本尽量避免调用 /// </summary> /// <param name="plistPath"></param> /// <param name="key"></param> /// <returns></returns> public static object AnalysisFriend(string plistPath, string key = "NSDictionary") { var jArray = (JArray)JsonConvert.DeserializeObject(PListHelper.ReadToJsonString(plistPath)); return(GetJToken(key, jArray)); }
/// <summary> /// 将plist文件转换成jarray对象 /// </summary> /// <param name="plist"></param> /// <returns></returns> public static JArray GetJArrayPlist(string plist) { var json = PListHelper.ReadToJsonString(plist); return(JsonToObject(json)); }