title: Can you assign Json values to a list in C#?
body: <p>Newbie here having a difficult time trying to assign these values from a json file to a list in C#. This is the json file:</p>
  <pre class="lang-json prettyprint-override"><code>{
     &quot;timezone&quot;:&quot;Australia&quot;,
     &quot;current&quot;:{
        &quot;temp&quot;:5.96,
        &quot;feels_like&quot;:4.8,
        &quot;wind_speed&quot;:1.7,
        &quot;wind_deg&quot;:286,
        &quot;weather&quot;:[
           {
              &quot;description&quot;:&quot;clear sky&quot;,
              &quot;icon&quot;:&quot;01n&quot;
           }
        ]
     },
     &quot;daily&quot;:[
        {
           &quot;temp&quot;:{
              &quot;day&quot;:9.99,
              &quot;min&quot;:4.76,
              &quot;max&quot;:10.06,
              &quot;night&quot;:7.85,
           },
           &quot;feels_like&quot;:{
              &quot;day&quot;:9.99,
              &quot;night&quot;:7.85,
           },
           &quot;wind_speed&quot;:1.7,
           &quot;wind_deg&quot;:286,
           &quot;weather&quot;:[
              {
                 &quot;description&quot;:&quot;overcast clouds&quot;,
                 &quot;icon&quot;:&quot;04d&quot;
              }
           ],
        },
        {
           &quot;temp&quot;:{
              &quot;day&quot;:10.89,
              &quot;min&quot;:4.5,
              &quot;max&quot;:10.94,
              &quot;night&quot;:4.5,
           },
           &quot;feels_like&quot;:{
              &quot;day&quot;:9.5,
              &quot;night&quot;:2.83,
           },
           &quot;wind_speed&quot;:2.5,
           &quot;wind_deg&quot;:359,
           &quot;weather&quot;:[
              {
                 &quot;description&quot;:&quot;overcast&quot;,
                 &quot;icon&quot;:&quot;04d&quot;
              }
           ],
        }
     ]
  }
  </code></pre>
  <p>I think these are the values that are required for the list:</p>
  <pre class="lang-cs prettyprint-override"><code>    public class Forecast
      {
          public float temp { get; set; }
          public float feels_like { get; set; }
  
          public float day { get; set; }
          public float min { get; set; }
          public float max { get; set; }
          public float night { get; set; }
  
          public float wind_speed { get; set; }
          public int wind_deg { get; set; }
  
          public string description { get; set; }
          public string icon { get; set; }
      }
  </code></pre>
  <p>I have tried to look through some documentation and I am not quite sure how to add values from &quot;temp&quot; or &quot;feels_like&quot; or &quot;weather&quot; to the list:</p>
  <pre class="lang-json prettyprint-override"><code>         &quot;temp&quot;:{
              &quot;day&quot;:9.99,
              &quot;min&quot;:4.76,
              &quot;max&quot;:10.06,
              &quot;night&quot;:7.85,
           },
  </code></pre>
  <pre class="lang-json prettyprint-override"><code>         &quot;feels_like&quot;:{
              &quot;day&quot;:9.99,
              &quot;night&quot;:7.85,
           },
  </code></pre>
  <pre class="lang-json prettyprint-override"><code>         &quot;weather&quot;:[
              {
                 &quot;description&quot;:&quot;overcast clouds&quot;,
                 &quot;icon&quot;:&quot;04d&quot;
              }
           ],
  </code></pre>
  <p>So far my intended outcome is to just use <code>Console.WriteLine</code> to print one value from the list.</p>
  <p>For example, this could be the weather description for the second forecast day being &quot;overcast&quot;. Another example is the maximum temperature for the first forecast day being &quot;10.06&quot;. One more is the current temperature being &quot;5.96&quot;.</p>