Reputation: 329
We are using JsonArray
from Gson
instead of JSONArray
. So, we are facing issue to convert JsonArray
to parallelStream
. How to do that?
Upvotes: 10
Views: 4593
Reputation: 38655
Try:
Stream<JsonElement> stream = StreamSupport.stream(jsonArray.spliterator(), true);
Upvotes: 20