RestRequest ,newtonsoft解析
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
//保存token
Newtonsoft.Json.Linq.JObject obj3 = Newtonsoft.Json.Linq.JObject.Parse(response.Content);///于我的JSON数据,解析方式如下(要先引用
string access_token = obj3["access_token"].ToString();
string expires_in = obj3["expires_in"].ToString();