how to get keys of a json object code example
Example 1: json get key
var jsonData = {person:"me", age :"30"};
console.log(Object.keys(jsonData)[0])
// Prints person
Example 2: javascript get json keys
Object.keys(jsonData).forEach(function(key) {
var value = jsonData[key];
// ...
});