Good day, the problem with parsing JSON.
I use JSON.NET for parsing.
Input data:
{"response": [{"uid": 12345, "first_name": "First Name", "last_name": "Last Name", "hidden": 1}]}
var res = Make("https://api.vk.com/method/users.get?user_ids=" + Config.UserId); //Make делает GET-запрос и возвращает результат. (Верный результат на месте, проверено) var r = JsonConvert.DeserializeObject(res); MessageBox.Show(r.response.first_name); On MessageBox.Show () throws an error:
"Newtonsoft.Json.Linq.JArray" does not contain a definition for "first_name"
r.response[0].first_name- Grundy