class CweSerializer extends JsonSerializer<List<Integer>> {

    @Override
    public void serialize(List<Integer> cweIds, JsonGenerator jsonGenerator, SerializerProvider serializerProvider)
            throws IOException, JsonProcessingException {<FILL_FUNCTION_BODY>}
}


        jsonGenerator.writeStartArray();
        for (final Integer cweId: cweIds) {
            final Cwe cwe = CweResolver.getInstance().lookup(cweId);
            if (cwe != null) {
                jsonGenerator.writeObject(cwe);
            }
        }
        jsonGenerator.writeEndArray();
    
<no_super_class>