Super new to JavaScript, but if I have If JSON payload looked like this:
{
'ProcessID' : '234928734'
'Steps' :
0 : {
'Thisthing' : 'Hello'
'Thatthing' : 'Yeah'
}
1 : {
'Thisthing' : 'UseMe'
'Thatthing' : 'ReturnMe'
}
}
I want my javascript function to return the words "ReturnMe"
because the parameter 'Thisthing' = 'UseMe'
. I don't the values of 'Thatthing'
returned unless the 'Thisthing'
is 'UseMe'
. I've tried JSON.parse()
but I can only get the root values.