Skip to content

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

@Binnette

Description

@Binnette

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions