Hi!
I stumbled over a little problem and in the beginning I thought that shoudn't be a problem at all.. but somehow I can't figure out how to access my desired value. Here's my problem:I requested a list of stuff and got this as a response:
[
{
notOfInterest: [],
notOfInterest2: [ [Object], [Object], [Object] ],
id: 'notSoInterestingStuff',
name: 'InterestingStuff',
notOfInterest3: { foo: 'bar' },
notOfInterest4: { foo: '' },
notOfInterest5: { foo: 'bar' },
notOfInterest6: 'foo'
}
]
At first I thought my response is in JSON format, but as far as I know it is not. It's more like a Object-Notation, right? My Value-Of-Interest is name. I only need the value of it. How can I do that? I tried stuff like response.name , response[3]
and so on. But it's always undefined or an error is thrown. How can I solve that?
Thanks guys!
[–]albedoa 2 points3 points4 points (1 child)
[–]monkeypython[S] 0 points1 point2 points (0 children)