I'm new to Java. I'm currently working on SpringBoot project. Here is my question,
I get a Object
type response
Object response = client.postForEntity(compilerUrl, params, JSONObject.class).getBody();
and the result is
{"A":"[2.0, 502.0]"}
How could I get the array [2.0, 502.0]
?
I tried to use ((Map) response).get("A")
, but it still returns an Object
.