title: Find value via property name in json.net?
body: <p>I have this simple json response  : </p>
  
  <pre><code>   {
      "results": [
          {
              "address_components": [
                  {
                      "long_name": "277",
                      "short_name": "277",
                      "types": [
                          "street_number"
                      ]
                  },
                  {
                      "long_name": "United States",
                      "short_name": "US",
                      "types": [
                          "country",
                          "political"
                      ]
                  },
                  {
                      "long_name": "11211",
                      "short_name": "11211",
                      "types": [
                          "postal_code"
                      ]
                  }
              ],
              "formatted_address": "277 Bedford Avenue, Brooklyn, NY 11211, USA"
          },
          {
              "a": 2
          }
      ],
      "status": "OK"
  }
  </code></pre>
  
  <p>How can I get the green value according to (yellow) <code>types</code> which contains <code>"country"</code> ?</p>
  
  <p>visualization :</p>
  
  <p><img src="https://i.stack.imgur.com/2XdU4.jpg" alt="enter image description here"></p>
  
  <p>Is it possible to do it via json Linq ? <code>(Newtonsoft.Json.Linq.JObjec)</code></p>
  
  <p><em>Something like this <strong>psuedo</strong> :  ( doesn't work/compile)</em></p>
  
  <pre><code> JObject jt=   JObject.Parse(dataObjects);
   jt["results"].Where(f=&gt;f.key=="address_components").Where(g=&gt;g["types"].contains("country")).select(h=&gt;h["long_name")
  </code></pre>