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

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -