"papers": [ { "files": [ { "url": "http://farnsworth.papro.org.uk/file/977", "type": "Initial XML version of the paper", "name": "c6938201-dac0-4ef9-91cd-ca6e8c30f4b8.xml" }, { "url": "http://farnsworth.papro.org.uk/file/978", "type": "Final annotated XML file", "name": "c6938201-dac0-4ef9-91cd-ca6e8c30f4b8_final.xml" } ] How can i get the first url in this json file ? What I have so far is:
JSONObject file = (JSONObject) files.get(j); String url = (String) file.get("url"); System.out.println(url);
.first()?