 <p>The code should be like the following:</p> <pre><code>$columns = array(/*Data*/); $columns1 = array(/*Data1*/); echo json_encode(array($columns,$columns1)); </code></pre> <p>in jQuery use</p> <pre><code>var columns_array=jQuery.parseJSON(response); columns=columns_array[0]; columns1=columns_array[1]; </code></pre>