There are a lot of questions about this out there, but I couldn't find a solution to my problem.
I have JSON that looks like this:
{
"index":[
{
"Color":"Blue",
"URL":"SomeURL",
"Persons":[
{
"name":"Charlie",
"Country":"Denmark",
"Security number":"25663456"
}
],
"Color":"Green",
"URL":"SomeURL",
"Persons":[
{
"name":"Putin",
"Country":"Russia",
"Security number":"78495832"
}
],
],
}
"total":"2"
}
The only JSON data I can access is index and total.
How do I access and print out ONLY name, Country or Color?