How to convert json to the class in C # json in the database is similarly stored and is not interchangeable
[rules][0][id]:1,
[rules][0][field]:1,
[valid]:true,
[IsActive]:true
public class FilterRule
{
    public bool IsActive { get; set; }
    public string Field { get; set; }
    public string Id { get; set; }
    public List<FilterRule> Rules { get; set; }
    public string Value { get; set; }
}
 
    