title: Can I push jackson-mapped @JsonProperties to the "top level"?
body: <p>Given a Java class like the following:</p>
  
  <pre><code>class MyClass {
  
      String value;
  
      Map&lt;String,Object&gt; map;
  
      @JsonProperty("value")
      public String getValue() {
          return value;
      }
  
      @JsonProperty("map")
      public Map&lt;String,Object&gt; getMap {
          return map;
      }
  }
  </code></pre>
  
  <p>Jackson will convert to JSON like so:</p>
  
  <pre><code>{
      "value": "abc",
      "map": {
          "key1": "value1",
          "key2": "value2",
          "key3": "value3"
      }
  
  }
  </code></pre>
  
  <p>What I would like instead is to "flatten" the <code>map</code> attribute somehow so its contents appears at the "top-level" of the JSON structure like this:</p>
  
  <pre><code>{
      "value": "abc",
      "key1": "value1",
      "key2": "value2",
      "key3": "value3"
  }
  </code></pre>
  
  <p>Is that possible <em>declaratively</em> through any combinations of Jackson annotations?</p>
  
  <p>(This is a simplification of my actual problem, so I am not looking for an answer like "write your own custom MyClass serializer." In reality, this class must work with custom ObjectMappers in a scenario out of my direct control.)</p>