Setting correct contentType for json responses