I have this strange issue with parsing given JSON data. I have this JSON structure:
{\"value\":[
{\"street\":\"Karlova 25\"},
{\"city\":\"Prague\"},
{\
You don't need to reinvent the wheel. This funcionality is already working. Create classes like below:
public class Value
{
public string street { get; set; }
public string city { get; set; }
public string gpsLat { get; set; }
public string gpsLon { get; set; }
}
public class MyClass
{
public List value { get; set; }
}
Now You can simply deserialize your json to your poco object.
MyClass result = JsonConvert.DeserializeObject(youJson);