I'm having an issue getting a value while using a ResponseEntity. In simplest terms, after making an API call and using
ResponseEntity<String> response = *api call*
String value = response.getBody();
I get as an output
{"value":123456}
However I would like to have the string: value be equal to just 123456 without simply brute forcing it. Any Ideas on how to do so?