jquery,php,json抽奖系统

im building a raffle system using jquery and php. i have it working now. my only problem is the json data from my ajax, im returning a multidimensional array from json. and i want to convert it to array so i can get the NAME and ID in my json.

{"participants":[{"name":"Acad-HS Male","id":"1"},{"name":"MGMT Female","id":"2"},{"name":"Acad-HS Female","id":"3"},{"name":"Acad-College Male","id":"7"},{"name":"Acad-College Female","id":"8"},{"name":"Acad-Elem Female","id":"9"},{"name":"Acad-HS Female","id":"10"},{"name":"NAP-Coll Male","id":"11"}]}  

above is my json

var names = [];
var index = -1, looper, lastwinner;

$(document).on("click","#startgpraffle", function(){
    $.ajax({
        type: "POST",
        url: baseUrl+"/home/getgrandprizeparticipants/",
        //dataType: 'json',
        cache: false,
        success: function(data){
            $.each(data.participants, function(i, value) {
                 names.push(value['name']);
                 //I WANT MY ID ALSO PUSHED IN THE ARRAY
            });
        }
    }); 

    (function __cycle(){
        var name = names[++index % names.length];
        $("#winnername").text(name);
        looper = setTimeout(__cycle, 500);
    })();
});

$(document).on("click","#gpwinner", function(){
    setTimeout(function(){
        var name = names[rand(0, names.length - 1)];
        clearTimeout(looper);
        $("#winnername").text(name);
        //REMOVE FROM LIST
        $.ajax({url: baseUrl+"/home/savegpwinner",data: {'name':name},success: function(data){
                //alert(data);
            }
        });
    }, rand(350, 700));
});  

after i click the gpwinner i want to get the ID of the Winning NAME based on the array. thanks in advance