Difference between following arrays?

Posted by jayesh jain on Stack Overflow See other posts from Stack Overflow or by jayesh jain
Published on 2013-06-26T10:18:00Z Indexed on 2013/06/26 10:21 UTC
Read the original article Hit count: 194

Filed under:
|
|

This is ARRAY1

var array_1 = ["51b59c162de88", [
    ["parties", 0.0, 0.011]
]]
["51b59c1b4f52f", [
    ["star-speak", 0.0, 0.006],
    ["parties", 0.0, 0.011]
]]

This is ARRAY2

var array_2 = [{
    key: "51b59c162de88",
    values: ["parties", 0.0, 0.011]]
},
    {
        key: "51b59c162de94",
        values: [
            ["star-speak", 0.0, 0.006],
            ["parties", 0.0, 0.011]
        ]
    }, ];
  • What is the exact difference between array 1 and array 2.

  • How do I access their data?

I am new to json!!!!

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about JSON