I have a HTML table that I want to parse and convert to JSON.

```
<table cellspacing="0" style="height: 24px;">
 <tr class="tr-hover">
  <th rowspan="15" scope="row">Network</th>
  <td class="ttl"><a href="network-bands.php3">Technology</a></td>
  <td class="nfo"><a href="#" class="link-network-detail collapse">GSM</a></td>
 </tr>
 <tr class="tr-toggle">
  <td class="ttl"><a href="network-bands.php3">2G bands</a></td>
  <td class="nfo">GSM 900 / 1800 - SIM 1 & SIM 2</td>
 </tr>  
 <tr class="tr-toggle">
  <td class="ttl"><a href="glossary.php3?term=gprs">GPRS</a></td>
  <td class="nfo">Class 12</td>
 </tr>  
 <tr class="tr-toggle">
  <td class="ttl"><a href="glossary.php3?term=edge">EDGE</a></td>
  <td class="nfo">Yes</td>
 </tr>
</table>

```

In the above table 

```
<th rowspan="15" scope="row">Network</th> 

```

JSON array name should be "Network". 

```
<td class="ttl"><a href="network-bands.php3">Technology</a></td>

```

Technology is a subheading of Network, so it must be a JSON element inside the JSON array. The values coming inside Technology array should be the values from 

```
<td class="nfo"><a href="#" class="link-network-detail collapse">GSM</a></td>

```

I hope my question is clear. How can i do that?