I have an app where I want to parse GeoJSON objects, but I don't see how DataContractJsonSerializer can support this. I've written a custom Json parser which works fine but I'd like to know if anyone has any other suggestions.
The main problem is that GeoJSON defines types such as:
// Point type
"coordinates": [100.0, 0.0]
// LineString type
[100.0, 0.0], [101.0, 1.0]
And so on. I don't think I can deserialize to a simple Geometry C# class because, in the first case, coordinates is a double, while in the second case, coordinates is a double. For multi-linestrings and polygons it's a double[ ... Go to the complete details ...
Found interesting? Add this to: