Yes I trying to remove if parent of child name also same but below solution is not workin. Here is my full code, first converted my c# class list object to json string, and then to JObject.
var jsonString = JsonConvert.SerializeObject(eligibilityModel);
JObject jObject = JObject.Parse(jsonString);
jObject.Descendants()
.OfType()
.Where(attr => attr.Name.Contains("ChildProducts") && attr.Parent.Equals("ChildProducts" ))
.ToList()
.ForEach(attr => attr.Remove());