I have a json value something like this
this.data = {"eoiStatistics": [
{
"dateRange": {
"explicitStartDate": "1997-01-01T00:00:00",
"explicitEndDate": "2019-07-01T00:00:00"
},
"outstandingApplicationCount": 0.0,
"pendingApplicationCount": 24.0,
"approvedApplicationCount": 0.0,
"declinedApplicationCount": 0.0,
"closedApplicationCount": 0.0 }]}
When i display this with a json pipe {{data | json}} in the application it displays like this
{"eoiStatistics": [
{
"dateRange": {
"explicitStartDate": "1997-01-01T00:00:00",
"explicitEndDate": "2019-07-01T00:00:00"
},
"outstandingApplicationCount": 0,
"pendingApplicationCount": 24,
"approvedApplicationCount": 0,
"declinedApplicationCount": 0,
"closedApplicationCount": 0
}]}
So if my value is 24.0 it displays 24 , i know that the .0 has no value but I need to display it in my application. Is there a way to do it?