I have the following JSON string and for example I need to access a single element of the array. Let's say I just wanted to pull out "host2." I keep trying things like members[1]
but that doesn't work. I keep getting "undefined."
{
"members": [
"host1",
"host2",
"host3"
]
}