请教jquery高手,怎样解析 json数据??

请教jquery高手,怎样解析 json数据??
前台页面用jquery的post函数向getData.aspx请求数据,getData.aspx返回的json数据结构如下:
[
{"fieldName":"userName","filedValue":"周磊"},
{"fieldName":"className","filedValue":"数学"},
{"fieldName":"bookName","filedValue":"大学语文"}
]
代码如下:
$.post("../getData.aspx",
{
function (data) {
// 怎样接收data中的每个fieldName和filedValue呢?
}
)
请问 function (data)函数中怎样解析出data中的每个fieldName和filedValue呢?

这是jQuery里jQuery.post的定义丛行:jQuery.post(url, [data], [callback], [type])

第四个参数可以指定返回的数据类型,可以设置成“json”。如果返回的内容符合json的格没巧式,jQuery会自动进行解析的,然后你就可以使用了,比如:渗察哗

$.post("../getData.aspx", function(data){
// 解析后,data是一个数组,数组里的元素是一个个对象
var item;
for(var i=0, len=data.length; i<len; i++) {
item=data[i];
alert(item.fieldName);
alert(item.filedValue);
}
}, 'json');

var jsonStr = data;
$(jsonStr).each(function(){
alert(this.fieldName +'碧销贺饥 '悔拍游+ this.filedValue);
});
json对象就是javascript对象
可以data.fieldName即可