title: how to deserialize this json on vb.net?
body: <p>i have this data in json format:</p>
  <pre class="lang-json prettyprint-override"><code>{
     &quot;status&quot;:{
        &quot;timestamp&quot;:&quot;2021-01-07T17:13:48.471Z&quot;,
        &quot;error_code&quot;:0,
        &quot;error_message&quot;:null,
        &quot;elapsed&quot;:12,
        &quot;credit_count&quot;:1,
        &quot;notice&quot;:null,
        &quot;total_count&quot;:4115
     },
     &quot;data&quot;:[
        {
           &quot;id&quot;:1,
           &quot;name&quot;:&quot;Bitcoin&quot;,
           &quot;symbol&quot;:&quot;BTC&quot;,
           &quot;slug&quot;:&quot;bitcoin&quot;,
           &quot;num_market_pairs&quot;:9732,
           &quot;date_added&quot;:&quot;2013-04-28T00:00:00.000Z&quot;,
           &quot;tags&quot;:[
              &quot;mineable&quot;,
              &quot;pow&quot;,
              &quot;sha-256&quot;,
              &quot;store-of-value&quot;,
              &quot;state-channels&quot;
           ],
           &quot;max_supply&quot;:21000000,
           &quot;circulating_supply&quot;:18593700,
           &quot;total_supply&quot;:18593700,
           &quot;platform&quot;:null,
           &quot;cmc_rank&quot;:1,
           &quot;last_updated&quot;:&quot;2021-01-07T17:12:02.000Z&quot;,
           &quot;quote&quot;:{
              &quot;USD&quot;:{
                 &quot;price&quot;:39362.167971369854,
                 &quot;volume_24h&quot;:78135138852.86674,
                 &quot;percent_change_1h&quot;:2.61231359,
                 &quot;percent_change_24h&quot;:12.47756102,
                 &quot;percent_change_7d&quot;:36.98956944,
                 &quot;market_cap&quot;:731888342609.2596,
                 &quot;last_updated&quot;:&quot;2021-01-07T17:12:02.000Z&quot;
              }
           }
        },
        {
           &quot;id&quot;:1027,
           &quot;name&quot;:&quot;Ethereum&quot;,
           &quot;symbol&quot;:&quot;ETH&quot;,
           &quot;slug&quot;:&quot;ethereum&quot;,
           &quot;num_market_pairs&quot;:5934,
           &quot;date_added&quot;:&quot;2015-08-07T00:00:00.000Z&quot;,
           &quot;tags&quot;:[
              &quot;mineable&quot;,
              &quot;pow&quot;,
              &quot;smart-contracts&quot;
           ],
           &quot;max_supply&quot;:null,
           &quot;circulating_supply&quot;:114155463.749,
           &quot;total_supply&quot;:114155463.749,
           &quot;platform&quot;:null,
           &quot;cmc_rank&quot;:2,
           &quot;last_updated&quot;:&quot;2021-01-07T17:12:02.000Z&quot;,
           &quot;quote&quot;:{
              &quot;USD&quot;:{
                 &quot;price&quot;:1261.606649005652,
                 &quot;volume_24h&quot;:39345516218.36576,
                 &quot;percent_change_1h&quot;:3.1558102,
                 &quot;percent_change_24h&quot;:7.80752209,
                 &quot;percent_change_7d&quot;:71.81090319,
                 &quot;market_cap&quot;:144019292086.06207,
                 &quot;last_updated&quot;:&quot;2021-01-07T17:12:02.000Z&quot;
              }
           }
        }
     ]
  }
  </code></pre>
  <p>and, in vb.net, with special paste i got this definition:</p>
  <pre><code>Public Class Rootobject
      Public Property status As Status
      Public Property data() As Datum
  End Class
  
  Public Class Status
      Public Property timestamp As Date
      Public Property error_code As Integer
      Public Property error_message As Object
      Public Property elapsed As Integer
      Public Property credit_count As Integer
      Public Property notice As Object
      Public Property total_count As Integer
  End Class
  
  Public Class Datum
      Public Property id As Integer
      Public Property name As String
      Public Property symbol As String
      Public Property slug As String
      Public Property num_market_pairs As Integer
      Public Property date_added As Date
      Public Property tags() As String
      Public Property max_supply As Integer
      Public Property circulating_supply As Integer
      Public Property total_supply As Integer
      Public Property platform As Object
      Public Property cmc_rank As Integer
      Public Property last_updated As Date
      Public Property quote As Quote
  End Class
  
  Public Class Quote
      Public Property USD As USD
  End Class
  
  Public Class USD
      Public Property price As Single
      Public Property volume_24h As Single
      Public Property percent_change_1h As Single
      Public Property percent_change_24h As Single
      Public Property percent_change_7d As Single
      Public Property market_cap As Single
      Public Property last_updated As Date
  End Class
  </code></pre>
  <p>but when i try with this command to deserialize</p>
  <pre><code>Dim m As IEnumerable(Of Rootobject) = 
      JsonConvert.DeserializeObject(Of IEnumerable(Of Rootobject))(res)
  </code></pre>
  <p>i get this error:</p>
  <pre class="lang-cs prettyprint-override"><code>Newtonsoft.Json.JsonSerializationException: 'Cannot deserialize the current JSON object 
      (e.g. {&quot;name&quot;:&quot;value&quot;}) into type 
      'System.Collections.Generic.IEnumerable`1[CoinMarketCap.Rootobject]' 
      because the type requires a JSON array (e.g. [1,2,3]) 
      to deserialize correctly. To fix this error either change the JSON to a
      JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a 
      normal .NET type (e.g. not a primitive type like integer, not a
      collection type like an array or List) that can be deserialized from a 
      JSON object. JsonObjectAttribute can also be added to the type to force 
      it to deserialize from a JSON object. Path 'status', line 1, position 10.'
  </code></pre>
  <p>im stucked... any idea?
  Thanks in advance.</p>