cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chaitanya" <chaitan...@pramati.com>
Subject Support for Json arrays
Date Thu, 09 Jul 2009 13:02:42 GMT
Hi, 

I have a JAX-RS method which takes an array of Employee objects as a param. Employee class
is given below.

@XmlRootElement
public class Employee {
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}

Unmarshalling of the JSON

{ "employee" : [ {"name" : "abc"}, {"name" : "xyz"} ] }

fails.

Does CXF support unmarshalling/marshalling of arrays?

I could not find a bug on this in the issue tracker and I am not sure if this is a bug in
CXF or Jettison. Please let me know if this issue is already fixed in the latest release(Iam
using CXF 2.2 sanpshot currently).

Thank you
Chaithanya.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message