JSON Decode into php array : <p>I am using JSON square brackets and would like to decode this into a two multidimensional array.</p>

<p>This is the JSON:</p>

<pre><code>"results" : [[ /* WINNER BRACKET */
    [[3,5], [2,4], [6,3], [2,3], [1,5], [5,3], [7,2], [1,2]],
    [[1,2], [3,4], [5,6], [7,8]],
    [[9,1], [8,2]],
    [[1,3]]
  ], [         /* LOSER BRACKET */
    [[5,1], [1,2], [3,2], [6,9]],
    [[8,2], [1,2], [6,2], [1,3]],
    [[1,2], [3,1]],
    [[3,0], [1,9]],
    [[3,2]],
    [[4,2]]
  ], [         /* FINALS */
    [[3,8], [1,2]],
    [[2,1]]
  ]]
</code></pre>

<p>And I am looking to decode the above into this type of PHP array as shown below:</p>

<pre><code>$winner_results = array
  (
  array("match1",3,5),
  array("match2",2,4),
  array("match3",6,3),
  array("match4",2,3),
  array("match5",1,5),
  array("match6",5,3),
  array("match7",7,2),
  array("match8",1,2),
  array("match9",1,12),
  array("match10",3,4),
  array("match11",5,6),
  array("match12",7,8),
  array("match13",9,1),
  array("match14",8,2),
  array("match15",1,3)
  );

$loser_results = array
  (
  array("match16",5,1),
  array("match17",1,2),
  array("match18",3,2),
  array("match19",6,9),
  array("match20",8,2),
  array("match21",1,2),
  array("match22",6,2),
  array("match23",1,3),
  array("match24",1,2),
  array("match25",3,1),
  array("match26",3,0),
  array("match27",1,9),
  array("match28",3,2),
  array("match29",4,2)
  );

$finals_results = array
  (
  array("match30",3,8),
  array("match31",1,2),
  array("match32",2,1)
  );
</code></pre>

<p>And would it possible to encode the above PHP array into the exact same JSON format as shown?</p>

<p>Many thanks for any help!</p>
