json object keys value javascript code example
Example 1: js get json keys
myObject = {
"key": "value"
}
Object.keys(myObject); // get array of keys
Example 2: javascript get json keys
Object.keys(jsonData).forEach(function(key) {
var value = jsonData[key];
// ...
});