js get json keys
myObject = {
"key": "value"
}
Object.keys(myObject); // get array of keys
js get json keys
myObject = {
"key": "value"
}
Object.keys(myObject); // get array of keys
json get key
var jsonData = {person:"me", age :"30"};
console.log(Object.keys(jsonData)[0])
// Prints person
get all keys in json object
var obj = {name: "Jeeva", age: "22", gender: "Male"}
console.log(Object.keys(obj))
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us