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