title: Get JSON data stored in a hidden input element?
body: <p>I'm building a website that store json data to hidden input element with php</p>
  
  <pre><code>&lt;input type='hidden' class='json_data' name='json_data' value='".json_encode($data[0])."'&gt;
  </code></pre>
  
  <p>with that code, I have this result:</p>
  
  <pre><code>&lt;input class="json_data" type="hidden" value="[{"ALBUM_ID":"1234","PHOTOS_ID":"1234578"}]" name="json_data"&gt;
  </code></pre>
  
  <p>but when I try to get the value with jquery.val and trying to show ALBUM_ID, i get this <code>{</code></p>
  
  <p>anything wrong with my way of putting json into html correctly? </p>
  
  <p>and then get it with jquery / javascript ?</p>
  
  <p>thanks </p>