title: Dynamic variable not working in C# with Json.Net
body: <p>Can anyone tell me why I get an error when trying to output"dJson2.Type" in the code below?</p>
  
  <pre><code>    string Json1= @"[{'Id':1, 'FirstName':'John', 'LastName':'Smith'}, {'Id':2, 'FirstName':'Jane', 'LastName':'Doe'}]";
      dynamic dJson1= JsonConvert.DeserializeObject(Json1);
      Console.WriteLine(dJson1.GetType());
      Console.WriteLine(dJson1.Type);
  
      string Json2 = @"{'Id':1, 'FirstName':'John', 'LastName':'Smith'}";
      dynamic dJson2 = JsonConvert.DeserializeObject(Json2);
      Console.WriteLine(dJson2.GetType());
      Console.WriteLine(dJson2.Type);
  </code></pre>
  
  <p>The program dies on the Console.WriteLine(dJson2.Type) statement.  The output of the program is...</p>
  
  <pre><code>Newtonsoft.Json.Linq.JArray
  Array
  Newtonsoft.Json.Linq.JObject
  (should say Object here, I think)
  </code></pre>
  
  <p>Inspecting the local variables, dJson2 has a "Type" property with value "Object".</p>