title: Find the value of specific element satisfying condition from json array
body: <p>Friends I have following like json array  </p>
  
  <pre><code>[
     {
        "Rate":100.0,
        "MaterialID":"BOLT",
        "BrandName":"",
        "Description":"",
        "Unit":"KG",
        "TokenNumber":2
     },
     {
        "Rate":null,
        "MaterialID":"PLYWOOD",
        "BrandName":"",
        "Description":"",
        "Unit":"FT",
        "TokenNumber":2
     },
     {
        "Rate":null,
        "MaterialID":"SCREW 1.5 INCH",
        "BrandName":"",
        "Description":"",
        "Unit":"KG",
        "TokenNumber":2
     }
  ]
  </code></pre>
  
  <p>I want to know the shortest way to find an element that has <code>materialID</code> with value <code>PLYWOOD</code>.<br>
  I can do it using <code>for</code> loop. But I want to know some shortcut for this something like</p>
  
  <p><code>var unit = jsonArray[&lt;whiere materialID == 'PLYWOOD']['Unit'];</code></p>
  
  <p><strong>You can use <code>jQuery</code> if required.</strong></p>