Send JSON when requesting text/html.