我正在尝试从此 json 数据中解析“VID”
{"response":[2,{"vid":165971367},{"vid":165971350}]}
。但它不想解析它。我认为json数据中的“2”有问题。如何消除这个数字?
这是我的代码:
HttpClient client = new HttpClient();
HttpResponseMessage response = await client.GetAsync("some json data");
string googleSearchText = await response.Content.ReadAsStringAsync();
JObject googleSearch = JObject.Parse(googleSearchText);
IList<JToken> results = googleSearch["response"].Children().ToList();
IList<SearchResult> searchResults = new List<SearchResult>();