Forum Discussion

blade's avatar
blade
Occasional Contributor
10 years ago
Solved

JSON Response tab displaying decimal values incorrectly compared to the actual RAW JSON Response

I have a REST API that returns JSON. See an example of a response below:

"Lines": [{
   "Amount": 5.0,
   "Cashback": 0.0,
   "Change": 0.0,
   "Forfeit": 0.0,
   "InclusiveTax": 0.84,
   "PaymentMethodId": 44,
   "ReceiptNumber": "24/0136",
   "Tip": 0.0,
   "CLMAccountType": 3,
   "Id": 10977524091755401,
   "Seats": [],
  }

 

As you can see the RAW Response contains a decimal place for Amount, Cashback, Change, Forfeit and Tip.

 

If I view this on the JSON tab in SoapUI NG Pro (Ready API 1.4.1), the decimal place is not getting displayed:

"Lines": [         {
            "Amount": 5,
            "Cashback": 0,
            "Change": 0,
            "Forfeit": 0,
            "InclusiveTax": 0.84,
            "PaymentMethodId": 44,
            "ReceiptNumber": "24/0136",
            "Tip": 0,
            "CLMAccountType": 3,
            "Id": 10977524091755401,
            "Seats": [],
         }

 

Is this a known issue(or limitation) in SoapUI? If it is an issue is there a fix planned?

 

Thanks,