array = new ObjectMapper().readValue(options[i], ArrayNode.class);
for (int j = 0; j < array.size(); ++j)
optionValues.add(array.get(j).asText());
UUID enqueteId = Util.isUUID(ids[i]) ? UUID.fromString(ids[i]) : UUID.randomUUID();
EnqueteQuestion question = new EnqueteQuestion(
enqueteId, questions[i], EnqueteAnswerType.safeValueOf(types[i]), optionValues);
enquetes.add(question);
}
} catch (JsonParseException e) {
throw new IllegalArgumentException(e);