JSFiddle - React, Tailwind, and code Playground

by Ehsan Sajjad

JavaScript

var value = [
    {
        "id": "0004",
        "name": "Test",
        "image": {
            "url": "images/0001.jpg",
            "width": 200,
            "height": 200
        },
        "Can": [
            "250ml",
            "300ml",
            "330ml",
            {
                "image": "images/0001.jpg"
            }
        ],
        "Bottle": [
            "350ml",
            "600ml",
            {
                "image": "images/0001.jpg"
            }
        ],
        "Fountain": [
            "small",
            "large",
            {
                "image": "images/0001.jpg"
            }
        ]
    }
];

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