try {
// try to format it
ObjectMapper objectMapper = new ObjectMapper();
ObjectWriter writer = objectMapper.defaultPrettyPrintingWriter();
Object json = objectMapper.readValue(originalResponseData, Object.class);
this.formattedOriginalResponseData = writer.withView(ViewFilters.Default.class).writeValueAsString(json);
} catch (JsonParseException jpe) {
// nothing to do here as this.formattedResponseData was already set to the appropriate data
}
}
}