Why does JSON.parse() add numbers in front of elements? : <p>I have a string where I build my build my "json-like" format, like</p>

<pre><code>_toBeFormated = 
[
    {"foor":"bar","foo":"bar","foo":["bar,bar"]},
    {"foor":"bar","foo":"bar","foo":["bar,bar"]},
    {"foor":"bar","foo":"bar","foo":["bar,bar"]}
]
</code></pre>

<p>But after calling <code>JSON.parse</code> like <code>_afterFormat = JSON.parse(_toBeFormated)</code>, my structure looks like the following:</p>

<pre><code>_afterFormat =
    0:{"foor":"bar","foo":"bar","foo":["bar,bar"]},
    1:{"foor":"bar","foo":"bar","foo":["bar,bar"]},
    2:{"foor":"bar","foo":"bar","foo":["bar,bar"]}
</code></pre>

<p>If I try to change to JSON Format at the beginning, like leaving out [ ], if failes to parse, also it looks like valid <code>JSON</code> to me. What am I missing, or why does it add the numbers at the beginning?</p>
