although the documentation says it should compile under 1.6, it currently doesn't:
JSONObject.java:1845: illegal start of type [javac] Map<String, Object> results = new HashMap<>();
it should be
Map<String, Object> results = new HashMap<String, Object>();