Problema desserializar Resteasy + jackson

0 respostas
C

Tenho um Json porem ele não consegue desserializar para o objeto todos os atributos vem null

{
user: {
name: "Nome",
id: "1"
}
}
@JsonIgnoreProperties(ignoreUnknown=true)
public class User {
	
	private String name;
	
	private String id;

//get set
}
ClientRequest req = new ClientRequest(URL);
 
ClientResponse<User> res = req.accept(MediaType.APPLICATION_JSON).get(User.class);
User user = res.getEntity();

Porem se eu tirar o root do json ele preencher os atributos normalmente

{
name: "Nome",
id: "1"
}

User [name=Nome, id=1]
Criado 24 de abril de 2013
Respostas 0
Participantes 1