You can use org.codehaus.jackson.map.ObjectMapper class for writing json strings to output stream. Use the following code snippet in method of your controller:
ObjectMapper mapper = new ObjectMapper();
mapper.writeValue(outputStream, model);
outputStream.flush();