Blog Posts for: Json.net

Deserializing different JSON structures to the same C# class
27 June 2018

The JsonConverter class allows you to deserialize differently structured JSON objects to the same C# class.

Using custom converters in JSON.NET: Array or Object?
06 March 2016

Custom converters in JSON.NET allow you to write custom logic when serializing or deserializing JSON. In this post I look at an example where the JSON returned could be either an object or an array.

Using JsonExtensionData with JSON.NET
07 February 2016

The JSON.NET JsonExtensionData attribute allows you to serialize elements of a JSON document which does not have matching properties to a collection.