title: How to deserialize JSON object with json.net
body: <pre><code>StreamReader qryTmpltStream = new StreamReader(tmpltPath + "templates.json");
  JsonTextReader qryTmpltReader = new JsonTextReader(qryTmpltStream);
  JsonSerializer qryTmpltSrlzr = new JsonSerializer();
  object jsonObject = qryTmpltSrlzr.Deserialize(qryTmpltReader);
  
  var tplts = JsonConvert.DeserializeObject&lt;JSONRepClass&gt;(jsonObject);
  </code></pre>
  
  <p>In above code I'm trying to read in a json file then deserialize it into a class. The problem is, this: JsonConvert.DeserializeObject wants a string, but the Deserailize method call before it returns an object. </p>
  
  <p>I tried casting to string and ToString(), but no go.</p>
  
  <p>Anyone see what I'm missing here?</p>