Loose Precision when retrieve data from rest web service


I use a rest service from jasper studio.
My data is for example : "5.65" (In JSON format)
When i click on Data preview , it show only '5'.  (The field is BigDecimal)

In my web service, if i change the mysql query with

 REPLACE (myValue, '.',',') // Replace dot by comma

The JSON become : '5,65' and it works ...

How can i cast this value in Jasper to avoid the use of replace...


jeff_33's picture
Joined: Jun 19 2018 - 9:16am
Last seen: 6 months 3 weeks ago

0 Answers:

No answers yet