var tmpANArray = [];
for (var i in associatedPpl) {
tmpANArray.push(associatedPpl[i]);
}
alert('about to call toJSON on AssociatedPpl');
alert(tmpANArray);
// the next line fails because $.toJSON is getting fed a function
var jsonEncodedAssociatedPpl = $.toJSON(tmpANArray);
What part of JavaScript/jQuery am I missing?
UPDATE The JS JSON lib was jquery.json-1.3.min.js