Is there a way to set an attribute by the path, using Json.NET?
JObject o = JObject.Parse(@"{
'CPU': 'Intel',
'Drivers': {
'Mouse': 'HPQ',
'VideoCard' : 'NVidia'
}
}");
//something like that
o.SetByPath("Drivers.VideoCard") = "Intel";
Is it possible?
By the way, I know that I can do this:
o["Drivers"]["VideoCard"] = "Intel";
but that's not what I'm looking for.