title: Searching JSON with PHP
body: <p>I grab a load of JSON data which i decode using php json_decode. I want to search or extract certain elements of the JSON object. I've looked at a few similar examples with little success.</p>
  
  <p>The JSON structure is like this. I want to extract the stock element to compare, using PHP.</p>
  
  <pre><code>{
  "items":{
           "item000":{
              "color":"black",
              "skuId":"sku000",
              "price":{
                 "sku000":"139.99"
              },
              "name":"item Name",
              "stock":"in stock"
           }
  }
  </code></pre>