My JSON data looks 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 use the json pipe {{data | json}}
in my application, it displays as follows:
{"eoiStatistics": [
{
"dateRange": {
"explicitStartDate": "1997-01-01T00:00:00",
"explicitEndDate": "2019-07-01T00:00:00"
},
"outstandingApplicationCount": 0,
"pendingApplicationCount": 24,
"approvedApplicationCount": 0,
"declinedApplicationCount": 0,
"closedApplicationCount": 0
}]}
Although the value is 24.0, it's displayed as 24 due to the nature of how numbers are formatted. Is there a way to retain the decimal point and display it in my application?