How to get token in response result?

I request to https://platform.uipath.com/api/Account/Authenticate and response code is 200, then I want to get token in response, my code as below:

if (statusCode == 200) {
    String jsonData = response.body().string();
    JSONObject jObject = new JSONObject(jsonData);
    token = jObject.getString("result");
}

But I found jsonData is only binary data, it is not a String, what can I do?

I solved this problems with charset to “shift_jis”, not default “utf-8”.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.