title: Detecting a token with a json object using json.net
body: <p>I'm using JSON.NET to de-serialize some JSON from a web service. I'm wanting to detect if a certain token is present and then act on that.</p>
  
  <pre><code>JToken token = JObject.Parse(JsonData);
  </code></pre>
  
  <p>I'm using the above to de-serialize the data, i've then tried the following</p>
  
  <pre><code>if (((string)token.SelectToken("tokenname")) != null)
  {
      Debug.WriteLine("found");
  }
  else
  {
      Debug.WriteLine("not found");
  }
  </code></pre>
  
  <p>each time it returns not found. Any idea's? thanks</p>