title: For JSON from mongodb how to extract ObjectID and then time stamp from that using java?
body: <p>My code is </p>
  
  <pre><code>ClientRequest request1 = new ClientRequest(url);
  request1.accept("application/json");
  ClientResponse&lt;String&gt; response1 = request1.get(String.class);
  System.out.println(response1);
  
  BufferedReader br = new BufferedReader(new InputStreamReader(
      new ByteArrayInputStream(response1.getEntity().getBytes())));
  
  String output=null;
  while ((output = br.readLine()) != null) {
      System.out.println(output);
  }
  </code></pre>
  
  <p>I need to extract just Object ID from Output and then get the timestamp from it. </p>
  
  <p>Output:</p>
  
  <pre><code>{ 
    "_id" : ObjectId("5252e015b11ce2799f84334d"), 
    "ConductivityChangeAlarm" : "1", 
    "LevelAlarm" : "1", 
    "WaterTankLevel" : "100cm", 
    "DeviceIndicator" : "1", 
    "HighPresuurePump" : "1", 
    "LowPressureAlarm" : "0", 
    "PremeateFlowRateDisplay" : "5gpm", 
    "CartridgeFilterPressureDropIncrease" : "0", 
    "RawWaterFlowRate" : "20gpm", 
    "TotaliseronHMI" : "1", 
    "FeedConductivityDisplay" : "500μS", 
    "RecirculationFlowRate" : "150gpd", 
    "HighPressureDisplay" : "32psi" 
  }
  </code></pre>