title: How to convert Json array to list of objects in c#
body: <p>I have Json string like below </p>
  
  <pre><code> {
  "JsonValues":{
  
          "id": "MyID",
  
           "values": {
              "value1":{
                  "id": "100",
                  "diaplayName": "MyValue1"
              },
              "value2":{
                  "id": "200",
                  "diaplayName": "MyValue2"
              }
         }
  }
  }
  </code></pre>
  
  <p>I want to convert Json string to below classes</p>
  
  <pre><code>  class ValueSet
     {
      [JsonProperty("id")]
      public string id
      {
          get;
          set;
      }
      [JsonProperty("values")]
      public List&lt;Value&gt; values
      {
          get;
          set;
      }
    }
  
  class Value
  {
      public string id
      {
          get;
          set;
      }
      public string DiaplayName
      {
          get;
          set;
      }
  }
  </code></pre>
  
  <p>My deserialization code is </p>
  
  <pre><code>JavaScriptSerializer js = new JavaScriptSerializer();
          StreamReader sr = new StreamReader(@"ValueSetJsonString.txt");
          string jsonString = sr.ReadToEnd();
          var items = JsonConvert.DeserializeObject&lt;ValueSet&gt;(jsonString);
  </code></pre>
  
  <p>But I am getting null values after serialization, How i can solve this?</p>