public class NoticeResponse {
@JsonDeserialize(using = ContentSerializer.class)
private String content;
}
static class ContentSerializer extends JsonDeserializer<String> {
public ContentSerializer() {
}
@Override
public String deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException {
JsonNode node = jp.getCodec().readTree(jp);
return node.toString();
}
}