I have a JSON result from external server
{
"address": {
"0": {
"name": "House 1",
"x": 1,
"y": 2
}
}
}
how can I create correct class in C# for parsing ?
I tried to get class here http://json2csharp.com And then code
//first way
RootObject MyObject = JsonConvert.DeserializeObject<RootObject>(text);
// another way
dynamic d = JObject.Parse(text);
But null pointer raise every time. Thank you in advance.