I guess I'm really thick, but I am going crazy with this JSON object:
Now,Code:var json={ "item":"random", "results":{ "1":"test" } }gives me "random". Great.Code:alert(json.item);
But obviouslywon't work. How do I access the key/value pair in json.results?Code:alert(json.results.1)
Cheers,
c00ch


Reply With Quote

Bookmarks