Quantcast
Channel: Converting byte[] to JsonObject - Stack Overflow
Viewing all articles
Browse latest Browse all 4

Converting byte[] to JsonObject

$
0
0

I want to convert byte to JsonObject. I tried like this:

public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {    String testV=new JsonObject(new String(responseBody));} 

But I am getting compiler error:

JsonObject cannot be applied to java.lang.String

How can I do this?


Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images