Why, when I try access an object in an array inside my JSON object, does it return undefined? — Scapbi’s Weblog


Why, when I try access an object in an array inside my JSON object, does it return undefined? I’m using alert(obj.files[1]); as an error checking box. When this pops up immediateley after my JSON is built the result is correct. (The output should be a filename) but when stick obj.files[i]; inside a for loop, it […]

via Why, when I try access an object in an array inside my JSON object, does it return undefined? — Scapbi’s Weblog

Advertisements