I have following JSON:
{
"category": {
    "category_identification": "1",
    "category_name": "C1",
    "image_one": "1.PNG",
    "image_two": "1_.PNG",
    "logo": "LOGO_1.PNG",
    "category_description": "DESCRIPTION"
},
"responseCode": "1"
}
I have to check if responseCode is 1 then have to display information from category (category_description, logo, etc.). I tried following code:
              $.each(data1, function(key, value) {
                    if (data1.responseCode == '1') {
                        alert(value.category_name)  
                    }
                });
where data1 is a JSON. I am getting undefined result.
 
    