Nested tables (web) into json?

Hi guys!

I got a webtable i need to scrape, but the problem is the table contains more tables, within it’s cells.
Sometimes as deep as 3-4 layers of tables within tables…
If i use data scraping, the headers and structure are all messed up.
How do i scrape a nested table and keep the structure?
Any way to get a Json or xml kind of structure?

//Mike