title: Changing Key Of An Property in Json
body: <p>I'm trying to make a json editor(works with treeview) these days, i did changing value function, i can change some keys as well, but i cant set keys in objects.
  I can set the value:</p>
  
  <pre><code>SetValue(ref JObject main,JToken token,JToken newValue) {
      //2nd argument is obj.SelectToken(node.Path)
       token.Replace(newValue);
  }
  </code></pre>
  
  <p>I can also set some keys: </p>
  
  <pre><code>SetKey(ref JObject main,JToken token,string newKey) {
      //2nd argument is obj.SelectToken(node.Path)
      //However, if token is in object, it seys the key of object because parent is object
       (token.Parent as JProperty).Replace(newKey);
  }
  </code></pre>
  
  <p>But how can i set the keys?
  Regards.</p>