I have a case where my JSON-structure is as follows:
{
  offset: 20,
  records: 
    [ 
      {
        key1:val, 
        key2:val, 
        key3:val
      }, 
      {
        key1:val, 
        key2:val, 
        key3:val
      }
    ]
}
I want to get this to the point where I can access the records array as an array containing Dictionaries (where the "key value" is the key and "val" is the value). I've tried using a Dto class to match the JSON data but I fall short on the last level.
public class Root
{
    public int next_offset { get; set; }
    public List<Records>  records { get; set; }
}
public class Records
{
    public string key1 { get; set; }
    public string key2 { get; set; }
    public string key3 { get; set; }
}
But since I need the "keys" as well, not just their values this does not work perfect either.
Please help me to sort out this issue.
 
     
    
 
    