The easiest way to change column names in a .json file would be to stringify it and simply use replace. But that might affect values.
I could also parse it into a jsonobject and replace the key row by row, but this does not seem to be very efficient.
var json = client.DownloadString(item.uri);
dynamic holdJson= JsonConvert.DeserializeObject(json);
foreach(var item in holdJson) {
item.setKey("replacement"); ?
}
Am I missing something here? What is the best way to replace or rename column headers in a json file?
edit: To ask my question more clearly: How do I change the Key in a JObject?