title: how to get particular key value from all the objects in a AJAX call
body: <p>here is the code ,i just want to grab "url" key  and its value and store it in a variable 
  i have tried several ways to segregate the key named url you can see that in my commented code</p>
  
  <pre class="lang-js prettyprint-override"><code>$.ajax({
    type: 'GET',
    url: "url",
    // data: data,
    // async: false,
    beforeSend: function(xhr) {
      if (xhr &amp;&amp; xhr.overrideMimeType) {
        xhr.overrideMimeType('application/json;charset=utf-8');
      }
    },
    dataType: 'json',
    success: function(res) {
      // console.log(res);
      // re=JSON.stringify(res);
      re = $.parseJSON(res)
      console.log(re['url'])
      // console.log(re)
      // console.log(re["url"])
      // for(var url in re) {
      //   var value = objects[key];
      // }
      // console.log(Object.values('url'));
      // ok=Object.keys(re).map(key =&gt; re[url])
      // console.log(ok)
      // console.log(re)
      // $.each(re, function(key, value){
      //    console.log(key + value);
      // });
      // console.log(re[url])
  
      // const seg = re.find(item =&gt; item.key === "url");
      // const result=seg
      // console.log(result)
      // alert(res);
    }
  
  });
  </code></pre>