[jQuery] newbie struggling with JSON
Hi, newbie here. Hoping someone can help. I'm able to successfully
call $.get and then eval() a URL that returns a JSON object:
$.get("myurl",
function(code) { eval(code); alert(code[0]); });
But if I try to call $.getJSON on the same URL:
$.getJSON ("myurl",
function(code) { alert(code[0]); });
I always get back: "code" has no properties
Any suggestions?
Thanks,
Stan McFarland
`