Kartheek Kalluri (KartheekK0378)
Synechron Technologies

Synechron Technologies
KartheekK0378 Member since 2015 1 post
Synechron Technologies
Posted: April 20, 2016
Last activity: March 23, 2017
Posted: 20 Apr 2016 11:35 EDT
Last activity: 23 Mar 2017 22:18 EDT

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, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.