cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kannan Ramasamy <ramkannan2...@gmail.com>
Subject Re: Support for Json arrays
Date Mon, 14 Feb 2011 17:55:12 GMT

So how can i handle this scenario? 

if i  have wrapper as mentioned below, will it solve the problem? 


@XmlAccessorType(XmlAccessType.PUBLIC_MEMBER)
@XmlRootElement(name = "store")
public class Store {
    private String description;    
    private Keywords keywords;
    @XmlElement(name = "keywords")    
    public Keywords getKeywords() {
        return this.keywords;

    }

}  

@XmlRootElement(name = "Keywords")
public class Keywords {
    private Set<Keyword> keyword;

    @XmlElement(name = "keyword")    
    public set<Keyword> getKeyword() {
        return this.keywords;
    }

}  



Thanks
Kannan


-- 
View this message in context: http://cxf.547215.n5.nabble.com/Support-for-Json-arrays-tp576369p3384835.html
Sent from the cxf-dev mailing list archive at Nabble.com.

Mime
View raw message