I\'m very new to Java 8 lambdas and stuff... I want to write a lambda function that takes a JsonArray, goes over its JsonObjects and creates a list of values of certain fiel
Try with IntStream.
List jsonObject = IntStream .range(0,jsonArray.size()) .mapToObj(i -> jsonArray.getJSONObject(i)) .collect(Collectors.toList());