Question

14
Replies
2517
Views
Close popover
Kartheek Kalluri (KartheekK0378)
Synechron Technologies

Synechron Technologies
US
KartheekK0378 Member since 2015 1 post
Synechron Technologies
Posted: April 20, 2016
Last activity: March 23, 2017
Closed
Solved

Pega encloses decimal property values in Double Quotes in JSON response object

Hello,

We are generating JSON response object using getJSON() method. This method is enclosing double quotes around all the property types (Decimal, Date, Boolean, Integer) and making it as string. The consuming system is taking it as String instead of it's original property type.

Ex: I have a property ;Amount' of type Decimal. This property has to be incorporated into JSON as Decimal, but getJSON() method forming JSON object with Amount as String.

JSON Output:

{"ServiceFee": {

   "Amount": "200.25",

"CurrencyCode": "USD"

  }}

Is there any way to get rid of the double quotes in JSON and rather than converting it to String, can we form the JSON object with it's original property types.

Thanks !!!

Kartheek Kalluri.

Message was edited by: Vidyaranjan Av | Included category

Data Integration
Moderation Team has archived post