I am using python to get info from an API. I want to be able to prompt for a users name (firstName) and have the response get the data from the related href value.
I prompt for users name and enter "Emma". I want to access the href value based on that input. The json data looks like:
{
"results": [
{
"authorised": true,
"firstName": "Emma",
"href": "https://192.168.1.198:8904/api/cardholders/569",
"id": "569",
"lastName": "Bennett"
}