how to access individual elements of a javascript object literal?
<p>I have a javascript object literal?
I access them in my webpage as
data.list[i].ger or data.list[i].eng</p>

<p>If I want to directly search an entry how can I directly access that entry?
or do I have to do a linear search or a binary search upon sort?</p>

<pre><code>data = {
    list: [
        {
            "ger": "A-as",
            "eng": "A as"
        },
        {
            "ger": "A-aws",
            "eng": "a-was "
        },
        {
            "ger": "we",
            "eng": "cv"
        },
        {
            "ger": "q",
            "eng": "w-la-w"
        },....
</code></pre>

<p>for e.g. if i wanted to access 
"ger": "q","eng": "w-la-w"
I would acces it as data.list[4].ger</p>

<p>is there any way of directly accessing knowing what is the index of that entry?</p>
