public class RootObject
{
public List<Result> results { get; set; }
public int result_index { get; set; }
}
...
private void ReadJson()
{
string JsonString = File.ReadAllText(MyJsonFile);
DynamicObject jObject = System.Web.Helpers.Json.Decode(JsonString);
RootObject RO = (RootObject)jObject;
...
}
The line:
RootObject RO = (RootObject)jObject;
is not correct. How is possible to assign the DynamicObject to my Class?