I'm trying to get JSON by name and save it as a variable with everything related to that nest, what would the best way to accomplish this? (in my scenario the names are unique)
[{
    "name": "Joe",
    "age": "30",
    "gender": "male"
},
{ 
    "name": "Logan", 
    "age": "27",
    "gender": "male"
}]
to something like this
{
"Joe": [{
    "name": "Joe",
    "age": "30",
    "gender": "male"
}],
"Logan": [{
    "name": "Logan",
    "age": "27",
    "gender": "male"
}]
}
i need to be able to search on the name to get the correct one, the API switches order so can't get it from just id