I have some JSon that I am converting to an object using the ToObject method.
A part of this Json has a repeated element which is correctly represented as an array in the Json text. When I convert this it correctly is mapped to the C# object
public IList<FooData> Foo { get; set; }
But when I only have 1 element I get an error saying that the Json that I am trying to Parse into an object is not an array because it does not have []
around it.
Does Json.NET support single element arrays?