一.说明 1.Newtonsoft.Json 中的Linq To Json中提供了方便的json数据查询.修改等操作. 例如:JObject,JArray 2.在JObject.FromObject()或JArray.FromObject()中也提供了对dynamic类型的支持. 二.dynamic转json字符串处理 using Newtonsoft.Json; using Newtonsoft.Json.Linq; 1.使用JObject对象 dynamic obj = new
可能是应该返回内容带了标签,过滤下 var index=data.indexOf("<"); if (index!=-1){ data=data.substring(0,index); } 这样就可以了 var index=data.indexOf("<audio");if (index!=-1){ data=data.substring(0,index);}