Commit a12134b7 authored by Matteo Melli's avatar Matteo Melli

Fixed JSON input stream file is read twice.

parent e1bf4f2c
......@@ -244,7 +244,7 @@ public class Main {
JsonValue groups = Json.createReader(inputStream).readValue();
if (groups.getValueType() == ValueType.ARRAY) {
Json.createReader(inputStream).readArray().forEach(element -> {
groups.asJsonArray().forEach(element -> {
if (element.getValueType() == ValueType.OBJECT) {
appendFromObject(builder, element.asJsonObject());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment