How to parse json with newtonsoft c#?

Have here is such json :
{"friendslist":{"friends":[{"steamid":"76561197972865963","relationship":"friend","friend_since":1549312386},{"steamid":"76561197982709416","relationship":"friend","friend_since":1536165297},{"steamid":"76561198037216725","relationship":"friend","friend_since":1543495119},{"steamid":"76561198040148528","relationship":"friend","friend_since":1501335629},{"steamid":"76561198964268045","relationship":"friend","friend_since":1558194848},{"steamid":"76561198984346938","relationship":"friend","friend_since":1570966944}]}}
do not get to choose the classes to parse,here 1 class : 5e13e0a7ba15d317571445.png,
and here's the class for "friends : 5e13e0e805697886063359.png,
how to make the last for "friendlist" I'll never know
April 4th 20 at 01:00
1 answer
April 4th 20 at 01:02
The correct classes are found here they are :
public class Friend
{
 public string steamid { get; set; }
 public string relationship { get; set; }
 public int friend_since { get; set; }
}

public class Friendslist
{
 public List<Friend> friends { get; set; }
}

public class RootObject
{
 public Friendslist friendslist { get; set; }
}
but now some team all right parse?
team: make it for me - oral.Cartwright17 commented on April 4th 20 at 01:05
@oral.Cartwright17, here it is direct recently, with Linux users fought for the user..
.. but right now I will not ))

although under the rules of the resource, it is more correct to simply ignore if there is a point of view )) - luciano.Smith commented on April 4th 20 at 01:08
var result = JsonConvert.DeserializeObject<RootObject>(jsonString);
- elinore.Kuvalis83 commented on April 4th 20 at 01:11
@elinore.Kuvalis83, @oral.Cartwright17, here it is. simple and tasteful (although not even tried to check. just the essence of the act is correct at @elinore.Kuvalis83, ) - luciano.Smith commented on April 4th 20 at 01:14

Find more questions by tags JSONC#