使用 javascript 获取 xsi:type 的值

Get value of xsi:type with javascript

我正在与 AngularJS 合作。从 SOAP 获取响应。

读取 xsi:type

的值时遇到问题
[{"attributes":{"xsi:type":"TicketNote"}]

如何仅使用 Javascript 或 AngularJS.

获取 xsi:type 的值
var obj =[{"attributes":{"xsi:type":"TicketNote"}}];
console.log(obj[0].attributes["xsi:type"]);