Serialization
ASP.NET Core [FromBody] Null?
Recently I was having an issue where a parameter being passed in to my WebAPI call was not being populated correctly. Theoretically all you need to do is add [FromBody] to the route, and it will automatically populate the object from the HTTP message’s body… but that wasn’t working for me Turns out this IS … [Read more…]
Custom Json.NET serializer
Newtonsoft Json.NET is a super popular (#1 most downloaded NuGet package) framework for serializing and deserializing json. In my experience, I haven’t really had to do much other than use the most basic serialization and deserialization. Sometimes, though, there is a time when the API you’re working with presents you with something goofy. In my … [Read more…]