[jQuery] JSON array size different in IE than in FF
I'm at the end of my rope and REALLY hope someone knows how to address
this:
got some JSON like so:
var Data= {
Music :
[
{"Band":"The Beatles","Title":"Hey Jude"},
{"Band":"The Beatles","Title":"Help!"},
]
}
And I'm simply looping over it like so:
$(Data.Music).each(function(i){
alert( Data.Music.length);
});
in FF all is well, but in IE I get 2 alerts and a fatal error ("null
or not an object") because the length is 3, not 2!
I wish I had any clue what's going on. How can I fix this?
Thanks!!!