Reputation: 6525
I've got an object which contains list of strings. How is it possible to define that the String.class should be serialized with alias "somealias" instead of "string" through annotations?
Upvotes: 0
Views: 146
Reputation: 3869
@XStreamImplicit(itemFieldName="somealias")
private List<String> content;
Upvotes: 1