title: JsonConvert.DeserializeObject<Datum>() is returning null from API response
body: <p>My problem is: I'm getting a null value as a response. I'm trying to get only one field, I need only &quot;price&quot; and when I'm trying to get it from the API</p>
  <p>API Result: <a href="https://pastebin.com/M3G0mWyt" rel="nofollow noreferrer">https://pastebin.com/M3G0mWyt</a></p>
  <pre><code>class Program
  {
      static HttpClient client = new HttpClient();
      static async Task Main(string[] args)
      {
          await program.getBtcData(); 
      }
  
      private static async Task getBtcData()
      {
          string response = await client.GetStringAsync(&quot;The API link with my code goes here&quot;);
  
          Datum datum = JsonConvert.DeserializeObject&lt;Datum&gt;(response);
  
          Console.WriteLine(datum.price);
      }
  }
  
  
  public class Datum
  {
      public float price { get; set; }
      public int price_btc { get; set; }
      public long market_cap { get; set; }
      public float percent_change_24h { get; set; }
     
  }
  </code></pre>
  <p>This is a fragment of the JSON response for the API, the <code>timeSeries</code> array has many records within the array.</p>
  <pre class="lang-json prettyprint-override"><code>{
      &quot;config&quot;: {
          &quot;data&quot;: &quot;assets&quot;,
          &quot;symbol&quot;: &quot;'BTC'&quot;
      },
      &quot;usage&quot;: {
          &quot;day&quot;: 3,
          &quot;month&quot;: 3
      },
      &quot;data&quot;: [
          {
              &quot;id&quot;: 1,
              &quot;name&quot;: &quot;Bitcoin&quot;,
              &quot;symbol&quot;: &quot;BTC&quot;,
              &quot;price&quot;: 46546.77152174,
              &quot;price_btc&quot;: 1,
              &quot;market_cap&quot;: 874289452443,
              &quot;percent_change_24h&quot;: 3.82,
              &quot;percent_change_7d&quot;: 17.16,
              &quot;percent_change_30d&quot;: 40.51,
              &quot;volume_24h&quot;: 42197482726.49,
              &quot;max_supply&quot;: &quot;21000000&quot;,
              &quot;timeSeries&quot;: [
                  {
                      &quot;asset_id&quot;: 1,
                      &quot;time&quot;: 1628611200,
                      &quot;open&quot;: 45201.72925621,
                      &quot;close&quot;: 44842.06072819,
                      &quot;high&quot;: 45246.68856158,
                      &quot;low&quot;: 44695.7885183,
                      &quot;volume&quot;: 2014656098.98,
                      &quot;market_cap&quot;: 843108422454,
                      &quot;url_shares&quot;: 2680,
                      &quot;unique_url_shares&quot;: 1083,
                      &quot;reddit_posts&quot;: null,
                      &quot;reddit_posts_score&quot;: null,
                      &quot;reddit_comments&quot;: null,
                      &quot;reddit_comments_score&quot;: null,
                      &quot;tweets&quot;: 16364,
                      &quot;tweet_spam&quot;: 8162,
                      &quot;tweet_followers&quot;: 101986337,
                      &quot;tweet_quotes&quot;: 257,
                      &quot;tweet_retweets&quot;: 6377,
                      &quot;tweet_replies&quot;: 2697,
                      &quot;tweet_favorites&quot;: 28077,
                      &quot;tweet_sentiment1&quot;: 551,
                      &quot;tweet_sentiment2&quot;: 1847,
                      &quot;tweet_sentiment3&quot;: 1538,
                      &quot;tweet_sentiment4&quot;: 11693,
                      &quot;tweet_sentiment5&quot;: 735,
                      &quot;tweet_sentiment_impact1&quot;: 1768663,
                      &quot;tweet_sentiment_impact2&quot;: 11388640,
                      &quot;tweet_sentiment_impact3&quot;: 6259652,
                      &quot;tweet_sentiment_impact4&quot;: 75941973,
                      &quot;tweet_sentiment_impact5&quot;: 6664817,
                      &quot;social_score&quot;: 102026425,
                      &quot;average_sentiment&quot;: 3.6,
                      &quot;sentiment_absolute&quot;: 3,
                      &quot;sentiment_relative&quot;: 84,
                      &quot;search_average&quot;: null,
                      &quot;news&quot;: 22,
                      &quot;price_score&quot;: 3.8,
                      &quot;social_impact_score&quot;: 4.3,
                      &quot;correlation_rank&quot;: 3,
                      &quot;galaxy_score&quot;: 73.5,
                      &quot;volatility&quot;: 0.02172477,
                      &quot;alt_rank&quot;: 149,
                      &quot;alt_rank_30d&quot;: 27,
                      &quot;market_cap_rank&quot;: 1,
                      &quot;percent_change_24h_rank&quot;: 1960,
                      &quot;volume_24h_rank&quot;: 2,
                      &quot;social_volume_24h_rank&quot;: 1,
                      &quot;social_score_24h_rank&quot;: 1,
                      &quot;medium&quot;: null,
                      &quot;youtube&quot;: null,
                      &quot;social_contributors&quot;: 15891,
                      &quot;social_volume&quot;: 17469,
                      &quot;price_btc&quot;: 1,
                      &quot;social_volume_global&quot;: 69887,
                      &quot;social_dominance&quot;: 24.996065076480605,
                      &quot;market_cap_global&quot;: 1954564708549,
                      &quot;market_dominance&quot;: 43.135354832017505,
                      &quot;percent_change_24h&quot;: -2.363770971407853
                  }
              ],
              &quot;social_dominance_calc_24h_previous&quot;: 0,
              &quot;social_contributors_calc_24h_previous&quot;: 199497,
              &quot;url_shares_calc_24h_previous&quot;: 50803,
              &quot;tweet_spam_calc_24h_previous&quot;: 169920,
              &quot;news_calc_24h_previous&quot;: 465,
              &quot;average_sentiment_calc_24h_previous&quot;: 3.6,
              &quot;social_score_calc_24h_previous&quot;: 1720730640,
              &quot;social_volume_calc_24h_previous&quot;: 317814,
              &quot;alt_rank_30d_calc_24h_previous&quot;: 35,
              &quot;alt_rank_calc_24h_previous&quot;: 103,
              &quot;social_dominance_calc_24h&quot;: 0,
              &quot;social_dominance_calc_24h_percent&quot;: 0,
              &quot;social_contributors_calc_24h&quot;: 140102,
              &quot;social_contributors_calc_24h_percent&quot;: 70.22762247051334,
              &quot;url_shares_calc_24h&quot;: 57014,
              &quot;url_shares_calc_24h_percent&quot;: 112.22565596519891,
              &quot;tweet_spam_calc_24h&quot;: 140547,
              &quot;tweet_spam_calc_24h_percent&quot;: 82.71362994350282,
              &quot;news_calc_24h&quot;: 433,
              &quot;news_calc_24h_percent&quot;: 93.11827956989247,
              &quot;average_sentiment_calc_24h&quot;: 3.5,
              &quot;average_sentiment_calc_24h_percent&quot;: 97.22222222222221,
              &quot;social_score_calc_24h&quot;: 1383209708,
              &quot;social_score_calc_24h_percent&quot;: 80.38502226007901,
              &quot;social_volume_calc_24h&quot;: 315465,
              &quot;social_volume_calc_24h_percent&quot;: 99.26088844418433,
              &quot;asset_id&quot;: 1,
              &quot;time&quot;: 1628697600,
              &quot;open&quot;: 46501.45088605,
              &quot;high&quot;: 46532.57066649,
              &quot;low&quot;: 46314.43464893,
              &quot;volume&quot;: 502699651.09,
              &quot;url_shares&quot;: 3518,
              &quot;unique_url_shares&quot;: 955,
              &quot;tweets&quot;: 20587,
              &quot;tweet_spam&quot;: 7624,
              &quot;tweet_followers&quot;: 102455405,
              &quot;tweet_quotes&quot;: 164,
              &quot;tweet_retweets&quot;: 2864,
              &quot;tweet_replies&quot;: 1122,
              &quot;tweet_favorites&quot;: 11256,
              &quot;tweet_sentiment1&quot;: 664,
              &quot;tweet_sentiment2&quot;: 1799,
              &quot;tweet_sentiment3&quot;: 4400,
              &quot;tweet_sentiment4&quot;: 13053,
              &quot;tweet_sentiment5&quot;: 671,
              &quot;tweet_sentiment_impact1&quot;: 4705176,
              &quot;tweet_sentiment_impact2&quot;: 25628013,
              &quot;tweet_sentiment_impact3&quot;: 8888460,
              &quot;tweet_sentiment_impact4&quot;: 58528967,
              &quot;tweet_sentiment_impact5&quot;: 4720195,
              &quot;social_score&quot;: 102474329,
              &quot;average_sentiment&quot;: 3.5,
              &quot;sentiment_absolute&quot;: 3,
              &quot;sentiment_relative&quot;: 85,
              &quot;news&quot;: 18,
              &quot;price_score&quot;: 3.2,
              &quot;social_impact_score&quot;: 3,
              &quot;correlation_rank&quot;: 5,
              &quot;galaxy_score&quot;: 73.5,
              &quot;volatility&quot;: 0.00851963,
              &quot;alt_rank&quot;: 107,
              &quot;alt_rank_30d&quot;: 47,
              &quot;market_cap_rank&quot;: 1,
              &quot;percent_change_24h_rank&quot;: 1132,
              &quot;volume_24h_rank&quot;: 2,
              &quot;social_volume_24h_rank&quot;: 1,
              &quot;social_score_24h_rank&quot;: 1,
              &quot;social_contributors&quot;: 5454,
              &quot;social_volume&quot;: 21579,
              &quot;social_volume_global&quot;: 86452,
              &quot;social_dominance&quot;: 24.960671817887384,
              &quot;market_cap_global&quot;: 2067216494026,
              &quot;market_dominance&quot;: 42.27625383507646,
              &quot;medium&quot;: 1,
              &quot;youtube&quot;: 1,
              &quot;reddit_posts&quot;: 11,
              &quot;reddit_posts_score&quot;: 12,
              &quot;reddit_comments&quot;: 8,
              &quot;reddit_comments_score&quot;: 8,
              &quot;tags&quot;: &quot;&quot;,
              &quot;close&quot;: 46546.77152174
          }
      ]
  }
  </code></pre>