I have the following classes @JsonTypeInfo(use=JsonTypeInfo.Id.NAME, include=JsonTypeInfo.As.PROPERTY, property="type", defaultImpl=NoClass.class) @JsonSubTypes({ @JsonSubTypes.Type(value = AllowAction.class , name = "allow") ... }) public abstract class Action { ... }
public class AllowAction extends Action { ... } public class ActionList extends ArrayList<Action> { ... } When ActionList is written out as XML I get the following <actions> <action type="allow"> ... </action> <action type="..."> ... </action> <action type="..."> ... </action> </actions> Do to some backwards compatibility issues I would like to add another tag to the action element <action type="allow" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="allowAction"/> ... </action> I haven't had much luck finding a way to do this and would appreciate any help I can get. Thanks. -- You received this message because you are subscribed to the Google Groups "jackson-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to jackson-user+unsubscr...@googlegroups.com. To post to this group, send email to jackson-user@googlegroups.com. For more options, visit https://groups.google.com/d/optout.