title: Getting a value from JSON API
body: <p>So as of now I have successfully pulled data from a 3rd party website's API, but I'm still struggling to pull the value out of it. The data is formed in the following way: <a href="https://i.stack.imgur.com/lvoEb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lvoEb.png" alt="enter image description here"></a></p>
  
  <p>My code currently looks somewhat like this:</p>
  
  <pre><code>Request.get("url", (error, response, body) =&gt; {
               if(error) {
                  return console.dir(error);
               }
  
               console.dir(JSON.parse(body)); 
               var obj = JSON.parse(body);
               var priice = obj.data.items_on_sale.price;
               console.log(priice);
               });
  </code></pre>
  
  <p>So I'd like to pull out the price value but I don't know how to do it correctly. If I remove the last 3 lines I get this: "data: { items_on_sale: [ [Object] ], items_not_on_sale: [] } }", and if I keep it as it is I still can't pull the price value successfully... Any advice?</p>