Direct transformation of HTML to JSON and vise visa