SyntaxFix
Write A Post
Hire A Developer
Questions
Java 8 style
JSONArray data = jsonObject.getJSONArray("some-node"); List<JSONObject> list = StreamSupport.stream(data.spliterator(), false) .map(e -> (JSONObject)e) .collect(Collectors.toList());