Ajax jquery json数组输出问题

Ajax jquery json数组输出问题,jquery,json,Jquery,Json,当我使用ajax json获得一个json_编码的数组时,我会像通常的数组一样输出元素 元素[0] $.ajax({ url: 'url.php', data: "", dataType: 'json', success: function(element)

当我使用ajax json获得一个json_编码的数组时,我会像通常的数组一样输出元素

元素[0]

$.ajax({                                      
  url: 'url.php',                
  data: "",                                       
  dataType: 'json',                    
  success: function(element)        
  {   
    $('#content').html(element[0]);
  } 
});

我从url中的编码json thtat中获取信息,但它只输出[object object]

这个元素可能有一些属性。例如,如果返回的JSON如下所示:

[ { "someProperty": "value 1" }, { "someProperty": "value 2" } ]
你可以:

$('#content').html(element[0].someProperty);

这是因为对象的
toString()
返回
[object object]


您需要决定如何输出该
对象
。检查它的属性,并选择您需要的属性,例如
元素。某些东西

“像通常的数组”是导致此操作无法在此处工作的部分。尝试在此处转储jSon对象;)