69
rated 0 times
[
72]
[
3]
/ answers: 1 / hits: 16550
/ 13 Years ago, fri, august 26, 2011, 12:00:00
I am unable to access a json value
{phone: [
{
@attributes: {
type: cell,
ext:
}
}, (123) 456 7890, {
@attributes: {
type: work,
ext:
}
}
]}
using the following JavaScript: psudo
for each phone line ...
console.log([@attributes].type);
console.log(this);
console.log([@attributes].ext);
... end for
I expected the following output:
cell
work (123) 456 7890
More From » json