I have this field in a POJO that is serialized into JSON:
@XStreamAlias("tags")
List<String> tags;
My problem is that the output looks like this:
"tags": [
{
"@class": "linked-list",
"string": [
"test",
"test2"
]
}
],
In what way that the output would look like this:
"tags": [
"test",
"test2"
],
Just like this.
The solution is to add
@XStreamImplicit
annotation: