i\'m using JSON.net (maybe v3.5ish? it\'s from oct. 2010). and i\'m trying to deserialize some json into an enumeration:
geometryType: \"esriGeometryPolygon\"
<
According to JSON.NET documentation, default behavior is to use int value for Enums : http://james.newtonking.com/projects/json/help/SerializationGuide.html
You can change that by adding a JsonConverter attribute with StringEnumConverter on your enum...
///
/// The geometry type.
///
[DataContract]
[JsonConverter(typeof(StringEnumConverter))]
public enum GeometryType
Documentation: Serialize with JsonConverters