Access to element in javascript Object
<p>After </p>

<pre><code>var parsed = JSON.parse(data);
        var arr = [];
        for(var x in parsed){
          arr.push(parsed[x]);
        }
</code></pre>

<p>I have:</p>

<pre><code>arr = [{"text":"sometext"}]
[{"text":"sometextOne"},{"text":"sometextTwo"}]
[{"text":"sometextOther"},{"text":"sometext"}]
[{"text":"sometexts"}]
[{"text":"sometextThree"},{"text":"sometextOne"},{"text":"sometextTwo"}]
</code></pre>

<p>What the best way show 'sometext' ?</p>

<p>Example: console.log(array.text) // sometext</p>