Convert JSON with various number of fields in .net
I have structure like this: public enum Roles { ROLE_1, ROLE_2, ROLE_3, ... ROLE_20 } public enum Status { NONE, ACTIVE, REFUSE ... } Depend on user I can receive from API various number of roles in JSON like this:…