This project has moved and is read-only. For the latest updates, please go here.

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???

Thank you,

file attachments