title: Deserializing json response in c#
body: <p>I have the following json response.</p>
  
  <pre><code>var loginJsonString= {
  "odata.metadata": "http://xxxxxxxx:7048/DynamicsNAV90/OData/$metadata#vehicle",
  "value": [{
      "Model": "",
      "Description": "",
      "ETag": "16;kF8BAAJ7AAAAAAA=6;3481190;"
  }, {
      "Model": "8889",
      "Description": "",
      "ETag": "28;kF8BAAJ7BDgAOAA4ADkAAAAAAA==6;2568000;"
  }, {
      "Model": "AAA",
      "Description": "bbbb",
      "ETag": "24;kF8BAAJ7/0EAQQBBAAAAAAA=6;3481740;"
  }, {
      "Model": "BMW",
      "Description": "aa",
      "ETag": "24;kF8BAAJ7/0IATQBXAAAAAAA=6;2464790;"
  }, {
      "Model": "MODEL1",
      "Description": "Model1 Description.",
      "ETag": "32;kF8BAAJ7/00ATwBEAEUATAAxAAAAAAA=6;3868770;"
  }, {
      "Model": "MODEL2",
      "Description": "Model2 Description.",
      "ETag": "32;kF8BAAJ7/00ATwBEAEUATAAyAAAAAAA=6;3868870;"
  }, {
      "Model": "MODEL4",
      "Description": "Model4 Description.",
      "ETag": "32;kF8BAAJ7/00ATwBEAEUATAA0AAAAAAA=6;3869770;"
  }, {
      "Model": "MODEL5",
      "Description": "Model5 Description.",
      "ETag": "32;kF8BAAJ7/00ATwBEAEUATAA1AAAAAAA=6;3869870;"
  }, {
      "Model": "MODEL6",
      "Description": "Model6 Description.",
      "ETag": "32;kF8BAAJ7/00ATwBEAEUATAA2AAAAAAA=6;3986650;"
  }, {
      "Model": "MODEL7",
      "Description": "Model7 Description.",
      "ETag": "32;kF8BAAJ7/00ATwBEAEUATAA3AAAAAAA=6;3987710;"
  }, {
      "Model": "SSS",
      "Description": "sss",
      "ETag": "24;kF8BAAJ7/1MAUwBTAAAAAAA=6;3481310;"
  }, {
      "Model": "VEHICLE MODEL",
      "Description": "",
      "ETag": "52;kF8BAAJ7/1YARQBIAEkAQwBMAEUAIABNAE8ARABFAEwAAAAAAA==6;3851550;"
  }, {
      "Model": "VITZ",
      "Description": "Car Type",
      "ETag": "28;kF8BAAJ7/1YASQBUAFoAAAAAAA==6;3481880;"
  }, {
      "Model": "VITZ1",
      "Description": "Car Type",
      "ETag": "28;kF8BAAJ7/1YASQBUAFoAMQAAAAAA6;3482080;"
  }, {
      "Model": "VITZ2",
      "Description": "Car Type",
      "ETag": "28;kF8BAAJ7/1YASQBUAFoAMgAAAAAA6;3483250;"
  }, {
      "Model": "VITZ3",
      "Description": "Car Type",
      "ETag": "28;kF8BAAJ7/1YASQBUAFoAMwAAAAAA6;3483600;"
  }]
  </code></pre>
  
  <p>}</p>
  
  <p>I want to deserialize the above response as,
  eg: 'Model= AAA  Description=bbbb'</p>
  
  <p>Following things I tried. Created a model class.</p>
  
  <pre><code>public class Vehicle
      {
          [JsonProperty("Model")]
          public string Model { get; set; }
          [JsonProperty("Description")]
          public string Description { get; set; }
          [JsonProperty("ETag")]
          public string ETag { get; set; }
      }
  </code></pre>
  
  <p>Then I used DeserializeObject() method.</p>
  
  <pre><code>Vehicle vehicleobj= JsonConvert.DeserializeObject&lt;Vehicle&gt;(loginJsonString);
  </code></pre>
  
  <p>But I cannot get values for vehicleobj. It shows null. 
  Can anyone help me to solve this.</p>