title: Deserialize JSON in C# to array
body: <p>I'm having trouble doing deserialize a certain json I am collecting a website.</p>
  
  <pre><code>{
    "query": {
      "search": [
        {
          "ns": 0,
          "title": "test",
          "snippet": "test"
        },
        {
          "ns": 0,
          "title": "test2",
          "snippet": "test2"
        },
        {
          "ns": 0,
          "title": "test3",
          "snippet": "test3"
        },
        {
        "ns": 0,
        "title": "test4",
        "snippet": "test4"
        }
      ]
    }
  }
  </code></pre>
  
  <p>This is the class that I'm trying to deserialize into:</p>
  
  <pre><code>private void DesURL_Click(object sender, RoutedEventArgs e)
      {
          string url = @"https://pt.wikipedia.org/w/api.php.....";
  
          var json = new WebClient().DownloadString(url);
  
          var listaURL = JsonConvert.DeserializeObject&lt;List&lt;Query&gt;&gt;(json);
  
      }
  </code></pre>
  
  <p>when trying to run the code of an error that this json should be deserialized into an array. Ai trying utiilizar JArray the method I need to do the deserialize before you can turn into array.</p>
  
  <p>The goal is to convert the title and snippet to string in order to extract information from it.</p>