I have a problem loop through a json file. i need to do special thing for each of root items (i mean c0,c1,c2,....) and another actions for each of their nested keys (exactly for each "series" that a root key have).
for example do an action for c0 and do some actions for series.s0 and series.s1 of c0 amd conitune....
here is my json file:
{
    "c0": {
        "name": "statistics",
        "series": {
            "s0": {
                "name":"Inbound",
                ....
            },
            "s1": {
                "name":"Outbound",
                ...
            }   
            }
        },
    "c1": {
        "name": "Packet statistics",
        "series": {
            "s0": {
                "name":"pjS",
                ...
            },
            "s1": {
                "name":"-----",
                ...
            }   
            }
        },
    "c2": {
        "name": "Bstatistics",
        "series": {
            "s0": {
                "name":"Active",
                ....
            },
            "s1": {
                "name":"SPI",
                ....
            }   
            }
        },
    "c3": {
        "name": "DPacket",
        "series": {
            "s0": {
                "name":"policy",
                ...
            }   
            }
        }
        }
 
    