Finding JSON Array Object Values by KeyName
<p>I am looking for a HashMap sort of implementation in Javascript for JSON for the following case. </p>

<p>I have the JSON with following structure:</p>

<pre><code>{
"level1": {
    "level2": [{
        "product1": [
            "item1",
            "item2"
        ]
    }, {
        "product2": [
            "item1",
            "item2"
        ]
    }, {
        "product3": [
            "item5",
            "item6"
        ]
    }]
}
}
</code></pre>

<p>For my use case, I get a value , say 'product3', I want to find values for this key i.e "item5", "item6". I have a way, that i can loop through the entire level2 object but want to know if I can simply use key to find values.  </p>