Javascript : Can't retrieve value from array
<p>I have a code</p>

<pre><code>alert(JSON.stringify((this.shop.get('selectedOrder')).get('orderLines')));
</code></pre>

<p>The Result look like this </p>

<pre><code>[{"cart_weight":0,"total_weight":1,"quantity":1,"list_price":1,"discount":0,"ean13":false,"product_image_small":false,"name":"Watermelon1","pos_categ_id":[1,"Others"],"taxes_id":[],"id":2}]
</code></pre>

<p>When I run this code</p>

<pre><code>alert((this.shop.get('selectedOrder')).get('orderLines').total_weight);
</code></pre>

<p>The result become</p>

<pre><code>undefined
</code></pre>

<p>Any export can help ?</p>

<p>I suspect is the double bracket causing the issue [{ }], but I am new to javascript. Not able to solve the issue.</p>

<p>Thank you.</p>
