I have a json file.
{
"Enumerations" : {
        "IndianCities" : [
            { "key" : "Delhi", "val" : 001},
            { "key" : "Mumbai", "val" : 002},
            ],
            .
            .
           },
"Users":[
 {
        "AccessType" : "Admin",
        "Male" : [
            {
                "Name" : "Xyz",
                "ID" : 459,
            },
            {
                "Name" : "Abc",
                "ID" : 542,
            }
        ],      
        "Female" : [
          {
                "Name" : "Abc",
                "ID" : 543,
            }
        ]
    },
{
        "Location" : "NewYork",
        "Male" : [
            {
                "Name" : "Xyz",
                "ID" : 460,
            },
            {
                "Name" : "Abc",
                "ID" : 642,
            }
        ],      
        "Female" : [
          {
                "Name" : "Abc",
                "ID" : 643,
            }
        ]
    },
]
Here, I want to store all enum data(both key and val info) in a list. Also from users class, I want to store info of all male users from all nested classes. Here, I wrote two classes names("Admin" and "NewYork") but in my json I have around 100 classes. Is there any generic solution available for reading male info all classes and put in a list.