private static object JsonToObject(string jsonString, object obj) { var serializer = new DataContractJsonSerializer(obj.GetType()); var mStream = new MemoryStream(Encoding.UTF8.GetBytes(jsonString)); return serializer.ReadObject(mStream); }
时间: 2025-01-04 06:41:09