title: How to avoid object wrapper inside object in jackson
body: <p>I was new to the <strong>spring restful with Jackson and Hibernate OGM</strong>. I'm getting JSON format as below from web request</p>
  
  <pre><code>"Order": 
  { 
    "Orderdata": [ {"orderNo" : "1","location":"A"},{"orderNo" : "2","location":"B"},..]
  }
  </code></pre>
  
  <p>Pojo class for order</p>
  
  <pre><code>class Order implements Serializable{
  @ElementCollection
  private List&lt;OrderData&gt; Orderdata = null;
  
  //getter and setter
  }
  </code></pre>
  
  <p>After inserting the document into MongoDB. I'm getting as below</p>
  
  <pre><code>"Order": {
    "Orderdata": [
      {
        "Orderdata": {"orderNo" : "1","location":"A"}
      },
      {
        "Orderdata": {"orderNo" : "2","location":"B"}
      },
      ...
    ]}
  </code></pre>
  
  <p>Here I need to avoid the <strong>"Orderdata" name inside the each document</strong> created. Please help me to resolve this issue.</p>