JSFiddle - React, Tailwind, and code Playground

JavaScript

var jsondata =  {
        "T3": [
            {
                "Can": [
                    {
                        "type": "pepsi can 250ml"
                    },
                    {
                        "type": "pepsi can 100ml"
                    }
                ]
            },
            {
                "Bottle": [
                    {
                        "type": "pepsi bottle 250ml"
                    },
                    {
                        "type": "pepsi bottle 100ml"
                    }
                ]
            }
        ]
    };

$.each(jsondata,function(index,item){
    $.each(item,function(index1,item1){
console.log(item1.Can);
    console.log(item1.Bottle);
});
});