KartheekK0378 Member since 2015 1 post
Synechron Technologies
Posted: 4 years ago
Last activity: 3 years 6 months ago

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


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
Share this page LinkedIn