Converting features and featureset to json and XML format

Jul 19, 2012 at 7:37 AM
Edited Jul 19, 2012 at 7:37 AM

I tried to convert feature to Json format using JSON.NET library but i was getting this An System.StackOverflowException.

Any ideas how to convert features and featureset to XML and Json format and convert back to feature and featureset

Jul 19, 2012 at 5:32 PM

I've not used that library too much, but the error might be due to a circular reference in Feature or FeatureSet.

Jul 20, 2012 at 4:22 PM

There is some code in the HydroDesktop - EPADelineation plugin that pulls down JSON from a web service and uses it to create FeatureSets.  Might be worth a look.