In ColdFusion, I can do this
<cfscript>
favorites = [{"broker_label":"spectra"}];
for (afav in favorites) {
writedump(afav);
}
</cfscript>
And I get each row in the array.
If I try this in Javascript
favorites = [{"broker_label":"spectra"}];
for (var afav in favorites) {
console.log(JSON.stringify(afav));
}
And all I get is 0, or to be exact. "\"0\""
What is going on?