using System.Collections.Generic;
using Newtonsoft.Json.Linq;
public static void Main()
string jsonString = @"{ 'contacts': [{ 'id': 'c200', 'name': 'Ravi Tamada', 'email': 'ravi@gmail.com', 'address': 'xx-xx-xxxx,x - street, x - country', 'gender': 'male', 'phone': { 'mobile': '+91 0000000000', 'home': '00 000000', 'office': '00 000000' } }] }";
var contactList = JsonConvert.DeserializeObject<ContactList>(jsonString);
var temp = contactList.contacts.FirstOrDefault(x => x.id == item);
Console.WriteLine(temp.name);
public string mobile { get; set; }
public string home { get; set; }
public string office { get; set; }
public string id { get; set; }
public string name { get; set; }
public string email { get; set; }
public string address { get; set; }
public string gender { get; set; }
public Phone phone { get; set; }
public List<Contact> contacts { get; set; }