Client client = Client.create();
WebResource webResource = client
.resource("my url");
String name = "adn";
String password = "34";
String authString = name + ":" + password;
String authStringEnc = new BASE64Encoder().encode(authString
.getBytes());
// System.out.println("Base64 encoded auth string: " +
// authStringEnc);
ClientResponse response = webResource.accept("application/json")
.header("Authorization", "Basic " + authStringEnc)
.get(ClientResponse.class);
String output = response.getEntity(String.class);
System.out.println(output);
I am getting the o/p like this
{"counts":[{"college_name":"GPT , Karimngr","college_epass_id":18},
{"college_name":"GPT, Dra","college_epass_id":444},
I want to convert that json data type to java object can you please suggest.