using GeoJSON.Net.Feature;
public static void Main()
JsonSerializer serializer = new JsonSerializer();
FeatureCollection o = null;
using (Stream s = getJsonData())
using (StreamReader sr = new StreamReader(s))
using (JsonReader reader = new JsonTextReader(sr))
if (reader.TokenType == JsonToken.StartObject)
o = serializer.Deserialize<FeatureCollection>(reader);
Console.WriteLine(o.Features.Count);
public static Stream getJsonData(){
string url = "https://raw.githubusercontent.com/GeoJSON-Net/GeoJSON.Net/master/src/GeoJSON.Net.Tests/Feature/FeatureCollectionTests_Can_Deserialize.json";
WebClient MyWebClient = new WebClient();
byte[] BytesFile = MyWebClient.DownloadData(url);
MemoryStream iStream = new MemoryStream(BytesFile);