Question
How to convert number to integer in JSON output of a service?
Hi, I have a service that outputs a JSON. The service is as simple as
var result = {
"ReturnCode": 0,
"Message": ""
};
However, when I called the service using POSTMAN, it returns
{
"ReturnCode": 0.0,
"Message": ""
}
I tried parseInt("0") to output integer for ReturnCode yet it doesn't work. How to convert the JSON format from number to integer?
Thanks.

