We are using XStream for our restful services. However, Xstream gives us varying results for fields with the same values. assume it Book object:
public class Book{
public String name "myName";
public Listauthors = new List();
public String subject "mySubject";
public Book(){
}
}
The json for this is:
{"Book":{"name":"myName", "authors":"", "subject":["mySubject"]}}
however, if I add authors to the collection I get a different result.
{"Book":{"name":"myName", "authors":["author1","author2","author3"],"subject":"mySubject"}}
Has anyone run into this issue and know of a solution?