C# remove json child node using newtonsoft
问题 I am developing an app using c# wpf in .net 3.5. I use newtonsoft library to parse the json string. I want to know how to remove a child node of json. For example, My json data = {"employees":[ {"firstName":"John", "lastName":"Doe"}, {"firstName":"Anna", "lastName":"Smith"}, {"firstName":"Peter", "lastName":"Jones"}]} The function jobject.Remove("employees"); removes all the nodes sucessfully I would like to know how to remove the first employee detail alone. 回答1: Once you parse your json