title: Joomla 3: adding category-image in article template
body: <p>I'm overriding the article template of my Joomla 3 website which is <code>default.php</code>. I need to add the category image into my article template.
  I already tried:</p>
  
  <pre><code>$db = &amp;JFactory::getDBO(); 
  $id = JRequest::getString('id'); 
  $db-&gt;setQuery('SELECT #__categories.params FROM #__content, #__categories WHERE #__content.catid = #__categories.id AND #__content.id = '. $db-&gt;quote($id)); 
  $category = $db-&gt;loadResult();
  echo $category; 
  </code></pre>
  
  <p>The result is something like: </p>
  
  <p><code>{"category_layout":"","image":"images\/u14115.png"}</code></p>
  
  <p>But how do I extract only the image from this JSON string?</p>