title: De-serialize Array of objects to JSON in MongoDB
body: <p>I am using Morphia (ver 0.99) for my JSON to Pojo mapping to my MongoDB (ver 2.0). Streaming data between web-clients and my server works fine. But now I have a use-case where I don't know what pattern that is most appropriate. Can I use Morphia or MongoDB Java driver to achieve my requirements or do I need to use Jackson and JPA 2.2 notation.</p>
  
  <p>Here is my use-case;</p>
  
  <ol>
  <li>Invoke Morphia query on selected collection (MongoDB)</li>
  <li>The use the resulting ArrayList of Pojos for business logic and presentation (Primefaces)</li>
  <li><strong>Also convert the resulting ArrayList of Pojo's to JSON array of objects, but remove Pojo properties in the conversions that is not needed in the web-client</strong></li>
  <li>Push the converted JSON to the web-client for presentation</li>
  </ol>
  
  <p>Converting one Pojo is straight forward with Morphia, but how do I convert an array?</p>
  
  <pre><code>return morph.toDBObject(obj).toString();
  </code></pre>
  
  <p>Is there a notation like <code>@JsonIgnore</code> in Morphia to ignore conversions to and from JSON ?</p>
  
  <p>How can I most efficiently (without using more libraries if possible) to solve step three in in my use-case. Convert ArrayList to JSON and ignore conversion of some of the Pojo properties?</p>