I would like to know if there's any way to extract a Json string from a http response.body(). Inside my response.body() I have: {"er":"manualBlock"} and I would like to deal with this string without having to use the split method.
Edit I have this so far:
String[] parts = response.body().string().split("-");
result = parts[0];
if (result != null && result.equals("{\"er\":\"manualBlock\"}")) {
throw new BlockeduserException("User blocked", null);
}