解析json数据
{"Orders":[{"pos":"1","OrderID":"199","CustomerID":"TOMSP","EmployeeID":"6","ShipVia":"1","Freight":"14.6800","ShipName":"Toms}]}
如题。小弟不才,刚接触json,请大侠指点,帮忙使用ajax 解析以上数据。
[解决办法]
$.ajax({
type: "POST",
url: "667.php",
dataType:"json",
success: function(json) {
alert(json['Orders']['pos']);
}
});