Its easy to load JSON into an object in javascript using eval or JSON.parse.
But if you have a proper \"class\" like function, how do you get the JSON data into it?<
I;m not too much into this, but aPerson.addAddress should not work, why not assigning into object directly ?
aPerson.address.push(someAddress); alert(aPerson.address); // alert [object object]