Written in response to It's due to the JSON string being malformed, i also tried it with jQuery 1.7.2 a...:
The { is used for objects with key-pairs, the [ is used for arrays. I didn't see the need to add any arrays in there. the simpler the better when moving data around. Also your JSON string was missing the : and , signs. You can read more about JSON here: http://www.json.org/
The way I formatted it ( used PHP json_encode ) makes it easy to access each user directly like:
Or, by using a loop as it posted there:
The way I formatted it ( used PHP json_encode ) makes it easy to access each user directly like:
var buster = obj.buster.username;
Or, by using a loop as it posted there:
var user = obj[x].username;

