title: How to display JSON data in laravel blade view
body: <p>I am getting a JSON response</p>
  <pre><code>@foreach($logs as $log)
    &lt;div class=&quot;modal-body&quot;&gt;
      {{ $log-&gt;general }}
    &lt;/div&gt;
  
    &lt;div class=&quot;modal-body&quot;&gt;
      {{ $log-&gt;response_headers }}
    &lt;/div&gt;
  @endforeach
  </code></pre>
  <p>the response is not structured like this I have made is readable for now</p>
  <pre><code>General
  {
    &quot;host&quot;: &quot;abcd-io.test&quot;,
    &quot;path&quot;: &quot;api/v1/companies/hello.com&quot;,
    &quot;request_ip&quot;: &quot;127.0.0.1&quot;
  }
  
  response_headers
  {
    &quot;X-Powered-By&quot;: [
      &quot;Express&quot;
    ],
    &quot;Access-Control-Allow-Origin&quot;: [
      &quot;*&quot;
    ],
    &quot;Content-Type&quot;: [
      &quot;application/json; charset=utf-8&quot;
    ],
    &quot;Content-Length&quot;: [
      &quot;4857&quot;
    ],
    &quot;ETag&quot;: [
      &quot;W/\&quot;12f9-UhKH0rSAm7BiHIeW5pbrH1gphXs\&quot;&quot;
    ],
    &quot;Date&quot;: [
      &quot;Sat, 20 Jun 2020 12:51:28 GMT&quot;
    ],
    &quot;Connection&quot;: [
      &quot;keep-alive&quot;
    ]
  }
  </code></pre>
  <p>Controller</p>
  <pre><code>public function index() {
     $logs = Log::where('user_id',auth()-&gt;user()-&gt;id)
            -&gt;orderBy('created_at', 'DESC')-&gt;get();
  
     return view('api.logs', compact('logs'));
  }
  </code></pre>
  <p>what I wish is to display <code>host</code> and <code>abcd-io.test</code> separately</p>
  <p>I tried using  <code>{{ $log-&gt;general['host'] }}</code> but it didn't worked</p>