title: Converting GeoJSON response to FeatureCollection
body: <p>Hi I am trying to parse the response from a OSM webservice into feature collection using GeoJson.Net</p>
  
  <p>I am new to GeoJSON and not able to identify how to do so:</p>
  
  <p>The Json response can be find <a href="https://a.data.osmbuildings.org/0.2/anonymous/tile/15/17608/10740.json" rel="noreferrer">here</a>. The code I have written is:</p>
  
  <pre><code>  System.IO.StreamReader file = new System.IO.StreamReader(filepath);
    string content = file.ReadToEnd();
    file.Close();
  
    dynamic deserialized = JsonConvert.DeserializeObject(content);
  
    List&lt;Feature&gt; lstGeoLocation = new List&lt;Feature&gt;();
    foreach (JObject item in deserialized.features)
    {
      //var feature = new Feature();
      var geom = item.Property("geometry").Value;
    }
  </code></pre>
  
  <p>But this will be plain JSON parsing and there might be a better way to parse the same.</p>
  
  <p>I also tried <a href="https://www.nuget.org/packages/NetTopologySuite.IO.GeoJSON/" rel="noreferrer">NetTopologySuite JSON extension</a> but when i use following code it gives me exception </p>
  
  <p>"Expected token 'type' not found."</p>
  
  <pre><code>System.IO.StreamReader file = new System.IO.StreamReader(filepath);
        string content = file.ReadToEnd();
        file.Close();
  
  
        var reader = new NetTopologySuite.IO.GeoJsonReader();
  
        var featureCollection = reader.Read &lt;NetTopologySuite.Features.FeatureCollection&gt;(content);
  </code></pre>