i have following json
data
from this i have name 'iPhone 4s'.
but while inputing the name 'iPhone 4s'
how can i get the corresponding values of host
and target
.am using javascript
{
devices: [
{
name: 'iPhone 4s',
host: '3.175: 375',
target: '137fc82506eb75431ec96fdd'
},
{
name: 'iPhone 5s',
host: '19:7265',
target: 'ea4c19957bbba6980db0f7'
}
]
}