如何使用JAX-RS客户端解组此JSON响应?
[["YES",0.47],["NO",0.0]]
我尝试没有成功:
import com.sun.jersey.api.client.ClientResponse;
import com.sun.jersey.api.client.GenericType;
....
ClientResponse response = ...;
response.getEntity(new GenericType<List<List<Object>>() {});
到目前为止,我可以将其解组为String
:
response.getEntity(String.class);