title: Convert JSON Object to C# Object
body: <p>I have a json object and I am trying to convert it to my c# object. Here is my JSON:</p>
  
  <pre><code>{"GuvenlikNoktaArray": {"GuvenlikNoktası": [{"Id": 1,"GuvenlikNoktası1":"SANTIYE","KartNo":"000001889174217","Sira": 1},{"Id": 2,"GuvenlikNoktası1":"INSAAT","KartNo":"000000803567858","Sira": 2},{"Id": 3,"GuvenlikNoktası1":"ÇALISMA","KartNo":"000003417926233","Sira": 3},{"Id": 4,"GuvenlikNoktası1":"GÜVENLIK","KartNo":"000001888909897","Sira": 4}]}}
  </code></pre>
  
  <p>And my c# class:</p>
  
  <pre><code> public partial class GuvenlikNoktası
  {
      public GuvenlikNoktası()
      {
          this.GüvenlikNoktasıOlay = new HashSet&lt;GüvenlikNoktasıOlay&gt;();
          this.PanikButonuAlarmlari = new HashSet&lt;PanikButonuAlarmlari&gt;();
      }
  
      public int Id { get; set; }
      public string GuvenlikNoktası1 { get; set; }
      public string KartNo { get; set; }
      public string Sira { get; set; }
  
      public virtual ICollection&lt;GüvenlikNoktasıOlay&gt; GüvenlikNoktasıOlay { get; set; }
      public virtual ICollection&lt;PanikButonuAlarmlari&gt; PanikButonuAlarmlari { get; set; }
  }
  </code></pre>
  
  <p>And last, my convert try:</p>
  
  <pre><code>public void AddIstasyon(string json_string)
  {
      GuvenlikNoktası result = new JavaScriptSerializer().Deserialize&lt;GuvenlikNoktası&gt;(json_string);
  }
  </code></pre>
  
  <p>I don't get any errors but when I debuged, I see that all attributes inside 'result' are null. It seems like an empty object. How can I get a correct 'GuvenlikNoktası' object ? (Btw I am pretty sure I am getting the json object correctly).</p>