title: "object" does not contain a definition for 'Name'
body: <p>i am using Json.Net package and my problem is when i want to get the value of an index it gives me an error like this "'object' does not contain a definition for 'Name'" </p>
  
  <p>here is my GetData.cs file content:</p>
  
  <pre><code>using System;
  using System.Web;
  using System.Net;
  using Newtonsoft.Json;
  
  public class GetData
  {
      public string Name{set;get;}
      public string ReleaseDate{set;get;}
  
      public object GetBasic(){
  
          string json = @"{
            'Name': 'Bad Boys',
            'ReleaseDate': '1995-4-7T00:00:00'}";
  
          GetData Data = JsonConvert.DeserializeObject&lt;GetData&gt;(json);
          return Data;
  
      }
  
  }
  </code></pre>
  
  <p>and this is my test.cshtml file content:</p>
  
  <pre><code>@{
      GetData Data = new GetData();
      var objects = Data.GetBasic();
  }
  
  &lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
      &lt;head&gt;
          &lt;meta charset="utf-8" /&gt;
      &lt;/head&gt;
      &lt;body&gt;
          @objects.Name
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>thank you in advance for help</p>