Move json.dumps to get_html.