title: JSON.parse() equivalent in mongo driver 3.x for Java
body: <p><code>JSON.parse()</code> from mongo (Java driver) returns either a BasicDBList or a BasicDBObject. </p>
  
  <p>However, when migrating to mongo driver 3.x, what's the new parse method that returns either <code>Document</code> or <code>List&lt;Document&gt;</code>?</p>
  
  <p>In the new driver, <code>Document.parse()</code> only parses an object, not an array (throws an exception when given an array).</p>
  
  <p>What is the equivalent of JSON.parse() for Arrays with 3.x Java drivers ? </p>