src/main/java/fr/maif/json/JsonWrite.java
static <T> JsonWrite<Traversable<T>> $list(JsonWrite<T> write) {
        return list -> {
            if (list == null) {
                return Json.newArray();
            }
            return Json.arr(list.map(write::write).toJavaArray(JsonNode[]::new));
        };
    }
/**
     * Write list to json
     *
     * @param write the writer
     * @return the writer
     */
Write list to json
@param write the writer
@return the writer
Write list to json @param write the writer @return the writer
static <T> JsonWrite<Traversable<T>> $list(JsonWrite<T> write) {
        return list -> {
            if (list == null) {
                return Json.newArray();
            }
            return Json.arr(list.map(write::write).toJavaArray(JsonNode[]::new));
        };
    }
static < T > JsonWrite < Traversable < T > > $list ( JsonWrite < T > write ) { return list -> { if ( list == null ) { return Json . newArray ( ) ; } return Json . arr ( list . map ( write :: write ) . toJavaArray ( JsonNode [ ] :: new ) ) ; } ; }
Write list to json
 @param write the writer
 @return the writer
Write list to json @param write the writer @return the writer