jquery parse json multidimensional array

Posted by ChrisMJ on Stack Overflow See other posts from Stack Overflow or by ChrisMJ
Published on 2010-03-21T16:47:40Z Indexed on 2010/03/21 16:51 UTC
Read the original article Hit count: 1165

Filed under:
|
|

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 :)

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JSON