bugfix json prettify now checks for content-type before trying to prettify a result