My requirement is to maintain the decimal value with 0. Here I have mentioned the sample object below.
let sampleObject = {
"firstname": "Sundar",
"lastname": "J",
"salary": 10000.00,
"incentive": 6500.50,
"age": 25
}
I need to display salary and incentive without losing the decimal places even the decimal value as 0. But after parsing this JSON object, decimal point with 0 will be lost. Is there any possibility or work around to do this?