title: JSON.net - Write into JSON / JObject using path string
body: <p>I have a little utility where we extract values from JSON using <code>JObject.SelectToken(path)</code>.  We need to determine the paths at run-time. Works perfectly.</p>
  
  <p>What I now need to do is to write back into the JSON (JObject or other) using the same path string.  I've hunted and searched and I can't quite find if there is anything that does this quite as cleanly as SelectToken does for reading.</p>
  
  <p>(I'm also stuck in 3.5 CF)  </p>
  
  <p>For example, something like:</p>
  
  <pre><code>... JObject read in already ...
  
  var theJToken = theJObject.SelectToken("animals.cat[3].name");
  theTJoken.SetValue("Bob"); // Of course this doesn't exist
  
  ... serialize it ... 
  </code></pre>