I would like to deserialize the following json using DataContractJsonSerializer:
"coordinates": [
[
18.008966033966707,
59.328701014313964
],
[
18.008642062225096,
59.3283087435048
]
]
Since the items in the array does not have a name I don't know how to tell the DataContractJsonSerializer what the items are. I have tried:
[DataContract]
public class Coordinate :IExtensibleDataObject
{
[DataMember(Order = 1)]
public decimal Longitude { get; set; }
[DataMember(Order = 2)]
public decimal Latitude { get; set; }
public ExtensionDataObject ExtensionData { get; set; }
}
Any ideas?