Using Angular and ASP.NET MVC, I'm passing in a JSON to my backend in ASP.NET. For the sake of example, let's just say I pass in a parameter that contains:
[{"id":1,"logo":""}, {"id":2,"logo":""}, {"id":3,"logo":""}]
in my backend I take this in as object:
public JsonResult SaveHeadlines(List<SomeObject> objectHere)
objectHere's properties of "logo" all contain null instead of an empty string.
Is there any way around this? I'm not sure if this is an Angular to ASP.NET bug or something...
EDIT:
//Serializing
List<Headlines> headlines = ServiceStack.Text.JsonSerializer.DeserializeFromString<List<Headlines>>(json);
return Json(headlines);