JAXB JSON array not in object -
i know how can use jaxb consume , produce json array list without being included in object:
[ "element1", "element2", "element3"] currently have being able including in object:
{ "elements" : [ "element1", "element2", "element3"] } the code used more or less 1 below.
@xmlrootelement(name = "elements") public class elementlistserializerhelper @xmlelement(name = "elements") @jsonproperty(value = "elements") public list<string> list; public elementslistserializerhelper() { list = new arraylist<string>(); } public elementslistserializerhelper(list<string> list) { this.list = new arraylist<string>(list); } } any more welcome. option i'm thinking generating/parsing string based on jackson library.
Comments
Post a Comment