In my Android Activity I am getting a JSONArray via HTTP containg usernames. The Array looks like this:
[{"username":"Julia"},{"username":"Anja"},{"username":"Hans"},{"username":"Sophia"},{"username":"Sarah"}]
I want to check in the Android Activity if a given username already exists.
What would be the most efficient way to do it? Or do I have to iterate over the whole array?