handle text/html content in jsonr response