I'm a newbie trying stuff out!
So i'm trying to deserialize a json string returned from an api and get the int status_code out of their returned json
overall BestGamer = JsonConvert.DeserializeObject<overall>(thicky);
Console.WriteLine(BestGamer);
{
"updated":"2020-01-13T05:08:58+0000"
"term":"bojack"
"status_code":200
"variant":"ivafull"
}
And i made a class here
public class overall
{
public int status_code { get; set; }
}
but whenever i compile and run it it just says TestConsole (name of my project) .overall (TestConsole.overall).
I'm using NewtonSoft to deserialize
If anyone could help me out with this i'd be very grateful :)