c# WebApi serialization of decimal
<p>I have a WebApi Controller which returns a List. My problem is, that I do not want xxxx.0 in the resulting JSON as this makes serious problems in my javascript. Is there a way to prevent .net serialization with .0 values so that they get truncated?</p>

<p>Current output:</p>

<pre><code>{"Temperature":[[1465434000.0,4.00],[1465437600.0,15.40],[1465441200.0,15.26],
</code></pre>

<p>Wanted:</p>

<pre><code>{"Temperature":[[1465434000,4.00],[1465437600,15.40],[1465441200,15.26],
</code></pre>

<p>Object which is serialized:</p>

<pre><code>public class ChartDataMonthly
{
    public List&lt;decimal[]&gt; Temperature { get; set; }
</code></pre>