As Mehdi said in his comment to the question, this is not an array, but is a JavaScript
object, which comes with key-value pairs, key being a property name, and value — the respective property value. But any JavaScript object can be considered as an
associative array. Such array is not the same as JavaScript array, which is a specialized object (essentially with the property
length
; oriented to the use of integers used as property names, but any kinds of properties can be mixed in the same object).
That said, you have to learn at least main principles of JavaScript Please see:
JavaScript — Wikipedia, the free encyclopedia[
^],
Associative array — Wikipedia, the free encyclopedia[
^].
About arrays objects as specialized JavaScript objects, please read
Array — JavaScript | MDN[
^].
Finally, this is how you parse JSON string into an object:
JSON.parse() — JavaScript | MDN[
^],
see also:
JSON — JavaScript | MDN[
^].
—SA