How to serialize/deserialize a custom collection with additional properties using Json.Net
The problem is the following: when an object implements IEnumerable, JSON.net identifies it as an array of values and serializes it following the array Json syntax (that does not include properties), e.g. : [ {“FooProperty” : 123}, {“FooProperty” : 456}, {“FooProperty” : 789}] If you want to serialize it keeping the properties, you need to … Read more