get keys from json array javascript code example
Example 1: get all keys in json object
var obj = {name: "Jeeva", age: "22", gender: "Male"}
console.log(Object.keys(obj))
Example 2: javascript get json keys
Object.keys(jsonData).forEach(function(key) {
var value = jsonData[key];
// ...
});