Convertion of an HTML file to JSON and JSON to TreeView