我不确定为什么下面返回 null 这是我的 json 字符串。是由 JSON 字符串格式引起的吗?
var data = '{"pvd":
{
"plannerViewDetailSummary":{"intTargetedCard":6549,"intDeliveredOffer":1,"intRedeemedOffer":1,"dtBegin":"\/Date(1380556800000)\/","dtEnd":"\/Date(1383148800000)\/"},
"plannerViewDetailChannel":[{"nvarDesc":"Email"}],
"plannerViewDetailTargetCust":[{"varGroupName":"ALL"}]
}
}'
var obj = jQuery.parseJSON(data);
if (obj == null) {
alert('null');
}