class JsonGenerator {

    public static JsonValue createJsonArray(Collection<?> collection) throws JsonException {
        if (collection == null) {
            return new NullValue();
        }
        return createJsonValue(collection, COLLECTION);
    }

}