java.lang.IllegalStateException: Not a JSON Object
问题 I am trying to get a json response from SonarQube using the SonarQube web API. While assigning the JsonElement into a JsonObject I am getting this error: java.lang.IllegalStateException: Not a JSON Object This is my Java class @Controller public class SonarController { @Autowired JenkinsDataService jenkinsService; @Autowired SonarDataService sonarService; HttpEntity<String> entity; @RequestMapping(value = { "/sonar" }) public void test(HttpServletRequest request, HttpServletResponse response