don't think its json i want. i just want to add a key to the value of each item in the array. i have included here a version of my code adapted to your proposed solution, and an example of a normal (non keyed) array.
doesn't work.
var MyClass = {
vars: {
test: [{'foo':'bar','hello':'wor
, nonKeyedArray: [bar,world]
}
}
alert(MyClass.vars.test['f
Main Topics
Browse All Topics





by: mplungjanPosted on 2007-05-22 at 07:18:19ID: 19134096
Is this what you want? l
http://www.json.org/js.htm