Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49171

Get specific item from object with unknown name? (like 1st item)

$
0
0

@Oliver2000 wrote:

I would like to get the value of "name" from the example json object below without knowing the name of the object (123) because this could be anything and I dont know before.

{
"123": {
"email": "kato@firebase.com",
"name": "Kato"
}
}

I know it dont work like this but I look for something like
console.log(object[0].name);

to make it more clear. :slight_smile:

thanks in advance, I realize this is not a ionic issue but I need help with it anyway and thought I ask you guys here.

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 49171

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>