title: Deserializing an unknown type in JSON.NET
body: <p>I just got a hold of <code>JSON.NET</code> and its been great so far.</p>
  
  <p>However, I cannot figure out how to determine the <code>type</code> of a serialized object when deserializing it.</p>
  
  <p>How can I determine the object's class to cast it?</p>
  
  <p>To clarify my question, let's say I wanted to do this</p>
  
  <pre><code>string json = &lt;&lt;some json i don't know&gt;&gt;
  var data = JsonConvert.DeserializeObject(json);
  if (data is Person)
  {
     //do something
  }
  else if (data is Order)
  {
     //do something else
  }
  </code></pre>
  
  <p>Does Json.NET support this kind of functionality?</p>