https://gis.stackexchange.com/questions/202865/serialize-geometry-to-geojson-with-arcobjects
[code=plain]
var jsonWriter = new JSONWriterClass();
jsonWriter.WriteToString();
// Create a property set to specify format to be GeoJSON
IPropertySet props = new PropertySetClass();
props.SetProperty("Format", "GeoJSON");
var jsonSerializer = new JSONSerializerGdbClass();
jsonSerializer.InitSerializer(jsonWriter, props);
var recordset = new RecordSetClass();
recordset.SetSourceTable((ITable)featureclass, null);
var sr = ((IGeoDataset)featureclass).SpatialReference;
int count;
((IExternalSerializerGdb2)jsonSerializer).WriteRecordSetEx2(null, recordset, null, sr, out count);
var geoJson = System.Text.Encoding.UTF8.GetString(jsonWriter.GetStringBuffer());
[/code]