How do I go through each item in the json below, so that when I find the desired login, I get the corresponding password?
Json:
[
{ "login":"maria",
"password": "1"
},
{ "login":"jose",
"password": "1"
},
{ "login":"joao",
"password": "1"
},
{ "login":"ana",
"password": "123"
}
]