soapui icon indicating copy to clipboard operation
soapui copied to clipboard

Rounded BigDecimal values displayed with scientific notation in the "Pretty Print JSON" tab

Open Binnette opened this issue 7 months ago • 0 comments

I use SoapUI to make REST calls (JSON responses). In the "Raw" tab, the response is shown correctly:

{ "i_am_a_big_decimal": 123456789123456789123456789 }

However, in the "JSON" tab, the JSON is displayed incorrectly as:

{
    "i_am_a_big_decimal": 1.2345678912345679E26
}

Note:

  • My big decimal is rounded; it ends with 679 instead of 6789.
  • My big decimal is displayed in scientific notation.

Furthermore, if I right-click on this content tab and click on "Format JSON", the JSON is formatted as:

{
    "i_am_a_big_decimal": 123456789123456790000000000
}

Can you please fix SoapUI so that its JSON formatter correctly handles BigDecimal values?

Info:

  • OS: Windows 10
  • SoapUI version: 5.7.0 (I also reproduce the issue with SoapUI 5.8.0)
  • JDK version : 17.0.2

Thank you and have a nice day!

Binnette avatar May 06 '25 14:05 Binnette