I have a JSON like this:
[{
\"agencyId\": \"myCity\",
\"road\": {
\"note\": \"\",
\"lat\": \"45.321\",
\"lon\": \"12.21\",
The StringEnumConverter
expects only a single enumeration value. Because ChangeTypes
is an array, you need to annotate the property a little differently to make it work.
Try this instead:
[JsonProperty("changeTypes", ItemConverterType=typeof(StringEnumConverter))]
public ChangeType[] ChangeTypes { get; set; }