I am trying to extract "Automation Admin" from the below JSON output I am getting but it gives me JSONObject["Name"] not found exception.
I tried replacing ownerName = json.getJSONArray("records").getJSONObject(i).getString("Name"); with ownerName = json.getJSONArray("records").getJSONObject(i).getString("Owner"); but even that fails. I am able to print values of OwnerId, FirstName etc but not Name. How can I extract 'Automation Admin'?