I know hot to Deserialize JSONs like { "key1": "value1", "key2": "value2"}
But now I am trying to use instagram API and it returns me a Json in this form
{
"access_token": "fb2e77d.47a0479900504cb3ab4a1f626d174d2d",
"user": {
"id": "1574083",
"username": "snoopdogg",
"full_name": "Snoop Dogg",
"profile_picture": "..."
}
}
Since it is not structured like an array of keys and values I am confused. I need to assign those values to the following class of mine.
public class AccessTokenResult
{
public string AccessTokenString { get; set; }
public class UserWhoTook
{
public int ID { get; set; }
public string UserName { get; set; }
public string FullName { get; set; }
}
}