0
我有一個JSON對象REST嵌套JSON
{
"firstname": "foo",
"account":
{
"city": "bar"
}
}
,我想序列化的REST後端:
@POST
public Response create(Employee e)
類:
public class Employee {
public String firstname;
private Address address;
}
public class Address {
public String city;
}
Unforutanetly,我總是收到一個400
狀態碼。但如果我做
public Response create(Object o)
一切工作正常。有任何想法嗎?
Omg,謝謝。有時候我看不到最微不足道的東西。 – Laughingman 2014-11-06 18:14:56