jquery parse json multidimensional array
- by ChrisMJ
Ok so i have a json array like this
{"forum":[{"id":"1","created":"2010-03-19 ","updated":"2010-03-19 ","user_id":"1","vanity":"gamers","displayname":"gamers","private":"0","description":"All things gaming","count_followers":"62","count_members":"0","count_messages":"5","count_badges":"0","top_badges":"","category_id":"5","logo":"gamers.jpeg","theme_id":"1"}]}
I want to use jquery .getJSON to be able to return the values of each of the array values, but im not sure as to how to get access to them.
So far i have this jquery code
$.get('forums.php', function(json, textStatus) {
//optional stuff to do after success
alert(textStatus);
alert(json);
});
If you can help id be very happy :)