If I use jackson-dataformat-xml to serialise an ArrayList of JsonNode it produces the following: <ArrayList><item>...</item><item>...</item></ArrayList> I’d like to have it read: <events><event>...</event><event>...</event></events> I’ve tried using a custom serialiser and does give me the <event/> tags I want but it also still wraps everything in an <ArrayList><item></item></ArrayList> public class ArrayListSerializer extends JsonSerializer<ArrayList<JsonNode>> { @Override public void […]
The post Rewriting ArrayList XML serialisation with jackson-dataformat-xml appeared first on BlogoSfera.