diff --git a/mvc/src/main/java/webmvc/org/springframework/web/servlet/view/JsonView.java b/mvc/src/main/java/webmvc/org/springframework/web/servlet/view/JsonView.java index 4d4427089f..f1495e2d9e 100644 --- a/mvc/src/main/java/webmvc/org/springframework/web/servlet/view/JsonView.java +++ b/mvc/src/main/java/webmvc/org/springframework/web/servlet/view/JsonView.java @@ -19,10 +19,10 @@ public class JsonView implements View { public void render(final Map model, final HttpServletRequest request, final HttpServletResponse response) throws Exception { - final String json = getJsonString(model); + final String jsonBody = getJsonString(model); response.setContentType(MediaType.APPLICATION_JSON_UTF8_VALUE); final PrintWriter writer = response.getWriter(); - writer.write(json); + writer.write(jsonBody); writer.flush(); }