using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; /// /// /// public class CVT_JSON { /// /// 把JointData 转化成 JointList /// 2021.3.29 /// /// /// public static List JointDataToJointList(string craftPlayData_Joint) { List jSqlList = new List(); foreach (JToken jJointFramesRows in (JArray)JsonConvert.DeserializeObject(craftPlayData_Joint)) jSqlList.Add(new double[] { Convert.ToDouble(jJointFramesRows["j1"]), Convert.ToDouble(jJointFramesRows["j2"]), Convert.ToDouble(jJointFramesRows["j3"]), Convert.ToDouble(jJointFramesRows["j4"]), Convert.ToDouble(jJointFramesRows["j5"]), Convert.ToDouble(jJointFramesRows["j6"])}); return jSqlList; } }