@@ -0,0 +1,965 @@
+/*%0A * This file is part of ATLAS. It is subject to the license terms in%0A * the LICENSE file found in the top-level directory of this distribution.%0A * (Also available at http://www.apache.org/licenses/LICENSE-2.0.txt)%0A * You may not use this file except in compliance with the License.%0A */%0Apackage de.dfki.asr.atlas.rest.providers;%0A%0Aimport com.fasterxml.jackson.databind.ObjectMapper;%0Aimport com.fasterxml.jackson.databind.SerializationFeature;%0Aimport javax.ws.rs.Produces;%0Aimport javax.ws.rs.core.MediaType;%0Aimport javax.ws.rs.ext.ContextResolver;%0Aimport javax.ws.rs.ext.Provider;%0A%0A@Provider%0A@Produces(MediaType.APPLICATION_JSON)%0Apublic class JacksonPrettyPrintProvider implements ContextResolver%3CObjectMapper%3E %7B%0A%09private ObjectMapper mapper;%0A%0A%09public JacksonPrettyPrintProvider() %7B%0A%09%09mapper = new ObjectMapper();%0A%09%09mapper.configure(SerializationFeature.INDENT_OUTPUT, true);%0A%09%7D%0A%0A%0A%09@Override%0A%09public ObjectMapper getContext(Class%3C?%3E type) %7B%0A%09%09return mapper;%0A%09%7D%0A%09%0A%7D%0A

add JAX-RS Provider to enable Jackson Pretty-Printing