There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Json returned from WebAPI project is stripping trailing zeros in Request.CreateResponse
The JSON being returned from my WebAPI controller is stripping the trailing zeros from dollar amounts (decimal data type in C#) during Request.CreateResponse();
all the numbers with 2 significant figures are correct:
23.57 is emitted fine (2 decimal places)
780.00 is emitted as 780
the trailing zeros are always stripped from decimal types when a trailing zero is encountered.
What setting must i use to stop this behavior???