If the name is equal to Test , is it possible to print the Can , Bottle and Fountain
Could anybody please help to put a condition inside the if block to match the criteria ??
$.each(value, function (i, v) {
if(i.name=="Test")
{
}
});
From the below JSON format
[
{
"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"
}
]
}
]