//using System.Web.Script.Serialization;

JavaScriptSerializer serializer = new JavaScriptSerializer();
Dictionary<string, object> json = (Dictionary<string, object>)serializer.DeserializeObject(
"{name: 'zswang', forum: 'c#'}");
object value;
if (json.TryGetValue("name", out value))

 string value2 = json.Where(t => t.Key == "access_token").FirstOrDefault().Value;
Console.WriteLine(value); // 输出:zswang


相关文章:

  • 2021-12-20
  • 2022-01-01
  • 2022-01-01
  • 2021-12-02
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
  • 2021-06-29
  • 2021-04-02
  • 2022-12-23
相关资源
相似解决方案