title: Laravel : How do I parse this json data in view blade?
body: <p>Hi i have JSon data like this:</p>
  
  <pre><code>[{label":a, "value":{"name":"abc","address"="New York"}}]
  </code></pre>
  
  <p>I've success print json with </p>
  
  <pre><code>{!! $mydata !!}
  </code></pre>
  
  <p>but when i try use foreach</p>
  
  <pre><code>@foreach($mydata['value'] as $value)
      Member ID: {{ $value['name'] }}   
  @endforeach
  </code></pre>
  
  <p>The laravel return </p>
  
  <pre><code>ErrorException in Collection.php line 1108: Undefined index:value
  </code></pre>
  
  <p>I've followed this : <a href="https://stackoverflow.com/questions/30073065/laravel-how-do-i-parse-this-json-data-in-view-blade">Laravel: How do I parse this json data in view blade?</a></p>
  
  <p>Anyone can help?</p>
  
  <p>Note: The JSON and Variable is not real mine. I was changed it to make it simple.</p>
  
  <p>EDITED:</p>
  
  <p>added <code>{{ dd(json_decode($tagihan, true)) }}</code> and return</p>
  
  <p><a href="https://i.stack.imgur.com/VUOBx.png" rel="nofollow noreferrer">Result after added  {{ dd(json_decode($tagihan, true)) }}</a></p>
  
  <p>EDITED:</p>
  
  <p>This my JSON:</p>
  
  <pre><code>array:5 [▼
    0 =&gt; array:7 [▼
      "id" =&gt; 8
      "no_rek_pelanggan" =&gt; 11115
      "keadaan_meteran" =&gt; 0
      "angka_meteran" =&gt; 3000
      "created_at" =&gt; "2016-05-28 15:28:17"
      "updated_at" =&gt; "2016-05-28 15:28:17"
      "all_pelanggan" =&gt; array:7 [▼
        "no_rek" =&gt; 11115
        "nama" =&gt; "Wicak"
        "alamat" =&gt; "Malang"
        "long" =&gt; 112.6153447
        "lat" =&gt; -7.9528411
        "created_at" =&gt; "2016-05-26 00:00:00"
        "updated_at" =&gt; "2016-05-26 05:00:00"
      ]
    ]
  </code></pre>
  
  <p>I want to read the value from nama, alamat, long, lat in all_pelanggan. How ca i do that?</p>