$.ajax({ async: false, type: \"POST\", url: url+\"module/listing/\"+projectId, data: \"ajax=true\", success: function(response) { $.each(resp
Same error, in my case instead of defining local as an array, I was defining it as a string. JSON.parse it did the trick.
JSON.parse