Last post Dec 08, 2015 12:45 PM by TheMink
Nov 30, 2015 10:05 AM|TheMink|LINK
I'm developing a REST API (web api) using asp.net in VisualStudio 2013 framework 4.0.
In my controller I'm simply returning a datatable and was hoping that the data would be returned nicely in JSON format.
But if there's a null value somewhere the JSON serialization fails (since it is trying to get the property without using the "Is<Property>Null" method first).
How to fix this?
Dec 01, 2015 09:07 AM|meeyourmark|LINK
How do you make the JSON serialization ? JSON.NET?
Dec 01, 2015 10:33 AM|TheMink|LINK
If I get the httpconfiguration att application start, I looks like the serializer settings is Newtonsoft.Json.JsonSerializerSettings, and that
UserDataContractJsonSerializer is false.
Dec 02, 2015 01:56 AM|meeyourmark|LINK
hope it helps.
Dec 08, 2015 12:45 PM|TheMink|LINK
I don't see how they can help my specific problem.