 <p>I posted a fix for this <a href="http://stackoverflow.com/a/24728537/2016196">here</a></p> <p>You can use this function to modify <code>JSON.stringify</code> to encode <code>arrays</code>, just post it near the beginning of your script (check the link above for more detail):</p> <pre><code>// Upgrade for JSON.stringify, updated to allow arrays (function(){ // Convert array to object var convArrToObj = function(array){ var thisEleObj = new Object(); if(typeof array == "object"){ for(var i in array){ var thisEle = convArrToObj(array[i]); thisEleObj[i] = thisEle; } }else { thisEleObj = array; } return thisEleObj; }; var oldJSONStringify = JSON.stringify; JSON.stringify = function(input){ if(oldJSONStringify(input) == '[]') return oldJSONStringify(convArrToObj(input)); else return oldJSONStringify(input); }; })(); </code></pre>