check the content-type rather than assume you're returning json

But, probably only want parts of that data as metrics and some of it is text, not numbers.