Get data from JSON by using a variable JavaScript/jQuery : <p>I'm trying to get data out of a JSON using a value.</p>

<p>I have an array of objects:</p>

<pre><code>"fruits": [
    {
        "Name": "Orange",
        "Quantity": "5"
    },
    {
        "Name": "Apple",
        "Quantity": "2"
    }
 ]      
</code></pre>

<p>And I also have the name "Apple". How can I get the quantity of Apples?</p>

<p>I'm stuck on this..</p>

<p>Thanks!</p>
