我有一个字符串res = {"responseCode":"3001","response":"1533352091995"}
如何从json中仅选择3001
?使用 ASP.NET
最佳答案
请找到以下答案:
string jsonData = @"{
'responseCode':'3001',
'response':'1533352091995'
}";
var details = JObject.Parse(jsonData);
Console.WriteLine(details["responseCode"]);
Console.ReadLine();
关于asp.net - 如何获取 JSON 字符串化数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51683000/