samedi 9 mai 2015

Converting Json Data to Array / Extracting specific node in .NET

I have a JSON data, using NewtonSoft JSON library, i'm unable to extract the specific node (the coordinates) to an array, or to a list.

Here is my JSON Data:

{"features":[{"type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[28.9574884865954,40.262043212854],[28.9577391646903,40.2620393471008],[28.9581300766863,40.2620333177299],[28.9581449735233,40.261331625691],[28.9575062426388,40.2613229341457],[28.9574884865954,40.262043212854]]]]},"properties":{"ParselNo":"3","SayfaNo":"6966","Alan":"4.300,00","Mevkii":"","Nitelik":"Arsa","CiltNo":"70","Ada":"513","Il":"Bursa","Ilce":"Osmangazi","Pafta":"H21b25d4b","Mahalle":"Emek"}}],"type":"FeatureCollection","crs":{"type":"name","properties":{"name":"EPSG:4326"}}}

... i'm not sure whether i've to use JsonConvert class or JsonParse class.

I "only" want to extract the "coordinates" node including the lat/long values to a well-defined form like array or to a list in C# or VB.NET.

Any help is greatly appreciated.

Aucun commentaire:

Enregistrer un commentaire