title: json_decode with values containing double quotes
body: <p>I am trying to use an editable table and have it working except for when the array values passed to the save function contain double quotes.  The error occurs at foreach loop</p>
  
  <pre><code>foreach($saveArray as $rowId=&gt;$row) {
  </code></pre>
  
  <p>It is the values (not keys) which may contain double quotes, the actual error being:</p>
  
  <pre><code>Warning: Invalid argument supplied for foreach()
  </code></pre>
  
  <p>What is the best way around this, some way to escape them, change them to the &amp;quot code, change the way the loop works?</p>
  
  <p>EDIT:</p>
  
  <p>Sorry, the problem is actually with the json_decode function and double quote values, not returning an array.</p>
  
  <p>Works fine for non double quoted entries</p>
  
  <p>json looks like </p>
  
  <p><code>{"2":{"component":"8\"", ...</code></p>
  
  <p>So it is escaped but it's not decoding into an array</p>