public class FilterConfig
public int[] ResourceManagerIds { get; set; }
public int[] DepartmentIds { get; set; }
public static void Main()
ResourceManagerIds = new [] { 1, 10165 }
var result = JsonConvert.SerializeObject(x);
Console.WriteLine(result);
var y = JsonConvert.DeserializeObject<FilterConfig>(result);
Console.WriteLine(string.Join(", ", y.ResourceManagerIds));
Console.WriteLine(string.Join(", ", y.DepartmentIds));