Choose the fragment that a client could use to request “/res/value” using its JSON representation
(Choose one):
A.
WebResource resource = client.resource(“/res/value”);
Value val =
resource.accept(“application/json”).get(Value.class);
B.
WebResource resource = client.resource(“/res/value”);
Value val =
resource.type(“application/json”).get(Value.class);
C.
WebResource resource = client.resource(“/res”);
Value val =
resource.accept(“value”).type(“application/json”).get(Value.class);
D.
WebResource resource = client.resource(“/res/value”);
Value val = resource.get(Value.class);
Explanation: