Click here to Skip to main content
15,880,725 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
The below is my JSON file
[
    {
        "Asia": [
            {
                "regionCode": "GC123",
                "Countrylist": [
                    {
                        "countryName": "China",
                        "countryCode": "GC456",
                        "subCountryList": [
                            {
                                "subCountryName": "Southern China",
                                "subCountryCode": "GC678"
                            },
                            {
                                "SubCountryName": "Central China"
								"subCountryCode": "GC607"
                            }
                        ]
                    }
                ],
                "regionName": "Eastern Asia"
            }
        ]
    },
    {
        "Africa": [
            {
                "regionCode": "GR102",
                "Countrylist": [
                    {
                        "countryName": "Angola",
                        "countryCode": "GC456",
                        "subCountryList": []
                    }
                ],
                "regionName": "Central Africa"
            }
        ]
    }
]


I wanted it to display as below
Collapsed structure
Asia
Eastern Asia
China +
Africa
Central Africa
Angola
Expanded structure
Asia
Eastern Asia
China -
Southern China
Eastern China
Africa
Central Africa
Angola
Posted
Comments
[no name] 26-May-15 3:24am    
ok

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900