title: Beginner JavaScript: Working with JSON and Objects in JavaScript
body: <p>I have some JSON returned to the browser like this "product":</p>
  
  <pre><code>{ "Title": "School Bag", "Image": "/images/school-bag.jpg" }
  </code></pre>
  
  <p>I want this data to be a "Product" object so I can use prototype methods like a <code>toHTMLImage()</code> that returns a HTML image representation of the product:</p>
  
  <pre><code>function Product() { }
  Product.prototype.toHTMLImage = function() { //Returns something like &lt;img src="&lt;Image&gt;" alt="&lt;Title&gt;" /&gt; }
  </code></pre>
  
  <p>How do I convert my JSON results into a <code>Product</code> object so that I can use <code>toHTMLImage</code>?</p>