vendredi 24 avril 2015

how to store JSON data into key-value pairs in javascript?

how to store JSON data into key-value pairs in javascript?

I have a json data file : data.js It contains follwing data

[
    { "Sound": "0.550951615" },
    { "Battery": 0.2567320563 },
    { "Screen": 0.0703125 },
    { "RAM": 0.1246117102 },
    { "Connectivity": 0 },
    { "Camera": 0.2721623766 },
    { "Design": 0.3677622768 },
    { "Processor": 0 }
]

how to store this data in key-value pair data-structure in java script?




Aucun commentaire:

Enregistrer un commentaire