I'm pretty sure you should not try to parse the data yourself. jQuery will do that for you, since you specified json as data type. So just remove the line where you parse the data, and alert data.Juicy instead.
And for the record, should you ever be in actual need of parsing any data manually (which I had to do once, when using a plugin that didn't) you'll have to enclose it in a try-catch block, as in
Code:
try {
json = jQuery.parseJSON(data);
alert(json.Juicy);
} catch (e) {
alert('Could not parse json data');
}
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
|