title: How to render json output in Octobercms component
body: <p>At the time I ran into a problem when creating a component for my plugin in octobercms. The problem is when I run the following query: </p>
  
  <pre><code>public function onRender(){
  
      $blogs = BlogPost::where('published', 1)
             -&gt;where('published_at', '&lt;=', 'NOW()')
             -&gt;orderBy($this-&gt;property('sortOrderBy'), $this-&gt;property('sortOrder'))
             -&gt;with('tags')
             -&gt;paginate($this-&gt;property('postsPerPage'));
      $this-&gt;blogs = $blogs;
      //print_r($blogs);
  }
  </code></pre>
  
  <p>But if I want to display a result of tags that belong to the post in the html of the component with {{}} post. Tags come json output. How can I make sure that I can show the names of the tags? </p>
  
  <p>My component file:</p>
  
  <pre><code>{% for post in posts.blogs %}
  &lt;p&gt;{{ post.titel }}&lt;/p&gt;
  &lt;p&gt;tags: {{ post.tags }}&lt;/p&gt; 
  {% endfor %}    
  </code></pre>