<meta charset="utf-8">
<div id="div001"></div>
<script>
var json = [
{uid:1002,ha:'hahaha'},
{ni:'hao',name:'张山沟',age:100},
{hello:'world'},
];
var temp = '';
for(var i=0,l=json.length;i<l;i++){
for(var key in json[i]){
temp += (key+' : '+json[i][key]+'<br>');
}
}
div001.innerHTML = temp;
</script>