Hey! I have a JSON and want to get nameOne and nameTwo (and more if there's more) to use it as a string for my categories. I haven’t found a way to do this on my own. I only get the content of the array. But never the name. Could you help? I need it for a ReactJS project.
{
"nameOne": [
[some strings],
[some strings]
],
"nameTwo": [
[some strings],
[some strings]
]
}
Ibrahim Tanyalcin
{intrst:"Scnc&Art",msc:"admin@MutaFrame",strive:"Experiment&Learn",loves:"ES5",hates:"bandwagon",lang:"Javascript",twttr:"@ibrhmTanyalcin"}
Object.keys?
var x = {a:1,b:2}; Object.keys(x);//["a","b"]watch out, this will only list the enumerable properties (perhaps what you want), not from the prototype or methods/properties with a descriptor with enumerable:false.