title: How do I wrap a section of xml in a CDATA tag using Jackson
body: <p>I have the following java object</p>
  
  <pre><code>class MyXmlObject{
      @JsonProperty
      private InnerObject innerObject;
      @JsonProperty
      private String someOtherProperty;
  }
  </code></pre>
  
  <p>When I serialize this using </p>
  
  <pre><code>public String getXmlObjectAsXML(MyXmlObject myXmlObject){
      JacksonXmlModule module = new JacksonXmlModule();
  
      module.setDefaultUseWrapper(false);
      XmlMapper mapper = new XmlMapper(module);
  
      mapper.configure(SerializationFeature.INDENT_OUTPUT, true);
  
      String response = "";
  
      response = mapper.writeValueAsString(myXmlObject);
      return response;
  }
  </code></pre>
  
  <p>I would like the InnerObject class to be wrapped in a CDATA tag.</p>
  
  <p>What is the correct way to handle this scenario?</p>