title: Jackson ObjectMapper set JsonFormat.Shape.ARRAY without annotation
body: <p>I need to use two jackson 2 object mappers.
  Both mappers work with the same set of classes.
  In the first I need to use standard serialization.
  In the second i want to use ARRAY shape type for all classes (see <a href="https://fasterxml.github.io/jackson-annotations/javadoc/2.2.0/com/fasterxml/jackson/annotation/JsonFormat.Shape.html#ARRAY" rel="nofollow noreferrer">https://fasterxml.github.io/jackson-annotations/javadoc/2.2.0/com/fasterxml/jackson/annotation/JsonFormat.Shape.html#ARRAY</a>).</p>
  
  <p>But i want to global set this feature for my second ObjectMapper. Something like mapper.setShape(...)</p>
  
  <p>How to do it?</p>
  
  <p><strong>UPD:</strong></p>
  
  <p>I found a way to override the config for the class:</p>
  
  <pre><code>mapper.configOverride(MyClass.class)
     .setFormat(JsonFormat.Value.forShape(JsonFormat.Shape.ARRAY));
  </code></pre>
  
  <p>So I can change for all my classes using Reflection API. </p>
  
  <p>It is embarrassing that I override the global setting, but I can not directly set it.</p>