title: Deserialize json as quoted string in Jackson without annotations
body: <p>I have a class like this.</p>
  <pre class="lang-java prettyprint-override"><code>class MyClass {
      String config;
      // ... other fields, getters, setters ...
  }
  </code></pre>
  <p>The <code>config</code> string will be coming as JSON from the REST endpoint in the request body as follows..</p>
  <pre class="lang-json prettyprint-override"><code>&quot;config&quot;: {
     &quot;field1&quot;: &quot;value1&quot;,
     &quot;field2&quot;: 2,
     &quot;field3&quot;: true
  }
  // other fields of MyClass
  </code></pre>
  <p>I need to deserialize <code>MyClass</code> in such a way that the above JSON string is put in quotes as follows.</p>
  <pre><code>&quot;config&quot;: &quot;{
     \&quot;field1\&quot;: \&quot;value1\&quot;,
     \&quot;field2\&quot;: 2,
     \&quot;field3\&quot;: true
  }&quot;
  </code></pre>
  <p>I cannot modify this class as it is being used by other projects. So, I cannot use <code>@JsonDeserialize</code> or any annotations on the class.</p>
  <p>I tried setting the following properties to <code>ObjectMapper</code></p>
  <pre class="lang-java prettyprint-override"><code> mapper.configure(JsonGenerator.Feature.QUOTE_FIELD_NAMES, false)
   .configure(JsonParser.Feature.ALLOW_UNQUOTED_FIELD_NAMES, true);
  </code></pre>
  <p>Is there any other way, perhaps using <code>ObjectMapper</code> to deserialize it that way. I am using Spring Boot also, so would welcome a Spring boot Jackson way of doing this.</p>