Kevin Rich
WebApi JSON Serialization
Circular References FTL
The Challenge
I was building a standard ASP.NET EntityFramework / WebApi / Swagger project. Attempting something a bit new, I decided my controller would return a CreatedAtRoute HttpActionResult. The code goes something a little like this:
[HttpPut]
public IHttpActionResult AddMyObject([FromBody] MyObject newObject)
{ . . .
Posted in: asp.netdevelopmententity-frameworkjsonjsonserializationexceptionmediatypeformatterserialiazationserializerswebapi
July 13, 2016
Cover image credit: http://whoiskevinrich.com