title: How to extract a specific object from a JSON?
body: <p>I would like to know how to extract a specific object from a JSON.<br />
  I saw most of the problem solved on Stackoverflow before posting this, but there is no one who already talked about this.</p>
  <p>I want need to get the <code>slug</code> value from the JSON objects.<br />
  Here is my code <a href="https://dotnetfiddle.net/17s24A" rel="nofollow noreferrer">Get Users From JSON</a></p>
  <pre><code>Imports System
  Imports Newtonsoft.Json.Linq
                  
  Public Module Module1
      Public Sub Main()
          Dim myJsonString = New System.IO.StreamReader(New System.Net.WebClient().
              OpenRead(&quot;https://pastebin.com/raw/z4GZFuF3&quot;)).ReadToEnd()
          
          Dim myJObject = JObject.Parse(myJsonString)
          For Each match In myJObject(&quot;matches&quot;)
          Console.WriteLine(match(&quot;id&quot;)(&quot;slug&quot;))
          Next
      End Sub
  End Module
  </code></pre>
  <p>And Here is the Output:</p>
  <pre><code>Run-time exception (line -1): Error reading JObject from JsonReader.  
  Current JsonReader item is not an object: StartArray. Path '', line 1, position 1.
  
  Stack Trace:
  
  [Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader.  
     Current JsonReader item is not an object: StartArray. Path '', line 1, position 1.]
     at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)
     at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings)
     at Newtonsoft.Json.Linq.JObject.Parse(String json)
     at Module1.Main()
  </code></pre>
  <p>What I have reduced since this error is that the object <code>&quot;matches&quot;</code> does not exist in the JSON text, but I have no idea what I should specify in its place to make this work.</p>