Help outputting Drupal View JSON data using getJSON function I'm trying to return the view data and display it in a list for verification.

It is sending for the data and seems to receive it (I get a 200), but it is not outputting the data.

Any help much appreciated!

&lt;div id="ajax"&gt;&lt;/div&gt;

&lt;script type="text/javascript"&gt;
$(document).ready(function(){

    $.getJSON('/views/ajax?view_name=latest_new&amp;view_display_id=page_1&amp;view_args=city', function(data) {
        var items = [];

        $.each(data.items, function(i, item) {
            items.push('&lt;li id="' + i + '"&gt;' + item + '&lt;/li&gt;');
        });

        $('&lt;ul/&gt;', {
            'class': 'my-new-list',
            html: items.join('')
        }).appendTo('#ajax');

    });

});
&lt;/script&gt;
$.ajax({
  url:'views/ajax',
  dataType: 'json',
  data:{
    view_name: 'my view name',
    view_display_id: 'default',
    view_args: 'view argument goes here',
  },
  success: function(data, textStatus, jqXHR){
    if(data[1].data !== undefined){
      // the view results will be in data[1].data
    }
  }
})