ASPForums.Net RSS Feed additions to the content that appears on ASPForums.Net(c) 2019 All rights reserved.ASP.Net MVC Error converting value null to type System.Decimal Null object cannot be converted to a value type<p>Hi <a class="username" rel="mahesh213"> mahesh213</a>,</p> <p>Make your EMI_Id nullable. Value null could not be serialized to decimal.</p> <pre class="brush: csharp">public decimal? EMI_Id;</pre> <p>Or you can ignore&nbsp;nulls while Serializing JSON.</p> <pre class="brush: csharp">string jsonString = JsonConvert.SerializeObject(movie, Formatting.Indented, new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore });</pre> <p>&nbsp;</p>, 16 Aug 2019 04:44:53 GMT