if the response can JSON.stringified, do so. otherwise disply as text