Try this
Create a class like below
Note : you can use Paste Special option in visual studio to generate all the classes related to the JSON
Edit -> Paste Special -> Paste Json As Classes
it will create all the classes related to the JSON
public class url_details
{
public string url_short { get; set; }
public string url_long { get; set; }
public int type { get; set; }
}
public List<url_details> json_deserialized()
{
string json = "[{\"url_short\":\"http:\\/\\/sample.com\\/8jyKHv\",\"url_long\":\"http:\\/\\/www.sample.com\\/\",\"type\":0}]";
List<url_details> items = new List<url_details>();
items = JsonConvert.DeserializeObject<List<url_details>>(json);
return items;
}
And you can access the element like below
List<url_details> obj = json_deserialized();
string url_short = obj[0].url_short;