How to decode JSON (varying number of elements, varying keys) using Jquery
        Posted  
        
            by Obay
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Obay
        
        
        
        Published on 2010-05-17T09:01:53Z
        Indexed on 
            2010/05/17
            9:10 UTC
        
        
        Read the original article
        Hit count: 468
        
My JSON looks like this:
{
"[email protected]":"Person1",
"[email protected]":"Person65",
"[email protected]":"Person24"
}
It's returned in various number of elements, and various keys. How do I traverse the data if my code is like this:
$.post("includes/ajax.php", {
    group_id : $('#group').val() 
}, function(data) {
    //how do i traverse data here?
}, "json");
Any help will be appreciated :)
Thanks!
© Stack Overflow or respective owner