JSON to HTML and HTML to JSON