如何从数据库中获取数据到JSON(括号)?

I'm trying to figure out how can I get the results from database to this JSON request. I'm using this script I have 8 teams in the "clans" table and want to randomize these 8 teams in the first round from database.

This code works well, but how can I fetch team 1, team 2, etc from the "clans" table? (all rounds are 'null' because I want to put scores manually)

var mindata = {
     teams:[

     ["Team 1", "Team 2"],
     ["Team 3", "Team 4"],
     ["Team 5", "Team 6"],
     ["Team 7", "Team 8"]




 ],
     results : [
         [[null,null],[null,null],[null,null],[null,null]],
         [ [null,null],[null,null]],
         [[null,null], [null,null] ]


     ] }
    $('.tournament').bracket({
        init:mindata
    });