How to get array if value in array exists. Jquery
<p>If the <code>"id":"236"</code> exists in <code>spConfig['attributs'][125]['options']</code> get the array that is contained in.</p>

<p>How would you do this in jQuery ?</p>

<pre><code>var spConfig = {
    "attributes": {
        "125": {
            "id": "125",
            "code": "pos_colours",
            "label": "Colour",
            "options": [{
                "id": "236",
                "label": "Dazzling Blue",
                "price": "0",
                "oldPrice": "0",
                "products": ["11148"]
            }, {
                "id": "305",
                "label": "Vintage Brown",
                "price": "0",
                "oldPrice": "0",
                "products": ["11786", "11787", "11788", "11789", "11790", "11791", "11792", "11793"]
            }]
        }

    }
</code></pre>
