<script src="//code.jquery.com/jquery-1.10.2.js"></script> <script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script> <script type="text/javascript" charset="utf-8" async defer> $.ajax({ url: "<?php echo Router::url(array('controller'=>'Home','action'=>'test'));?>", type: 'POST', // data: {groupid:groupid, Projectname: Projectname}, success: function(data){ // var obj = JSON.stringify(data); datas = JSON.parse(data); $.each(datas, function(index, val) { alert(val.Article.id); }); }//end success ! });//end ajax </script>