ASP.NET JSON Self Referencing Properties

In object-oriented languages, an object can hold a reference to itself in a property, and there’s no problem with that. However, when you go to serialize that object, you run into issues. An object with a self-referencing property that loops back to itself would cause an infinite loop and crash when trying to serialize it. […]

JSON casing in ASP.NET Core

Some mallethead decided that they wanted to take UpperCamelCase names of properties and change them to lowerCamelCase when sending JSON to the client. Sure, maybe this fits standard naming conventions, but it means that you’ll end up with different property names. public JsonResult GetFoo() { return Json(new Foo { Name = “Jane Doe”, Age = […]