I've an api, which read from an OracleDB. If i call it directly it returns:
{
...
...
numericField: 910010000346422907
...
otherNumericField: 2018020800
...
}
but if i call it through a springboot java server using
URI targetUrl= UriComponentsBuilder.fromUriString(url)
.queryParams(queryParameters)
.build()
.encode()
.toUri();
RestTemplate restTemplate = new RestTemplate();
String result = restTemplate.getForObject(targetUrl, String.class);
values in result string looks like
numericFiled: 9.1001000034642291E17 .... otherNumericField: 2.0180208E9
The api returns Content-Type application/json; charset=UTF-8
. How could I correctly read numeric value correctly?