Creating Show from JSON – client side

I am successfully passing JSON responses to the client. Now I need to display that information effectively.

I’m using the “Content-Type” field to separate plain text from JSON responses. Here’s info on the XMLHttpResponse object I use for AJAX.  The type is only stored in the header. The content type doesn’t seem to store the type in the response body. The type of the response header is declared server side as “text/html” or “application/json”.