I have an API that returns a JSON array with 6000 objects. Each object has around 40 properties, but I only need to use around 20. How do ignore certain properties? Here is my current code:
string json = await client.GetStringAsync(string.Format(url));
List<ListModelClass> ListOfStuff = JsonConvert.DeserializeObject<List<ListModelClass>>(JArray.Parse(json).ToString());
public class ListModelClass {
public string firstProperty { get; set; }
public string secondProperty { get; set; }
public string thirdProperty { get; set; }
... about 40 more
}