title: mongodb java driver 3.0: how to store JSON document
body: <p>Looks basic and simple: A have a JSON string and I want to store it in MongoDB as JSON document.</p>
  
  <p>In java driver 2.xx I could use <code>com.mongodb.util.JSON.parse(String jsonString)</code> to get <em>DBObject</em> and then store it in collection.</p>
  
  <p>In driver 3.0 <em>JSON.parse</em> still gives <em>DBObject</em>, but rest of API uses <em>org.bson.Document</em> class which looks as incompatible with <em>DBObject</em>. </p>
  
  <p>How to do it in driver version 3.0? </p>