title: I am unable to Fetch data from mongoDB while whn i using BigDecimal inside query
body: <pre><code>     BigDecimal log_max=new BigDecimal(21.11617279052734);
           BigDecimal log_min=new BigDecimal(21.01617279052734);
           BigDecimal lat_max=new BigDecimal(61.43435454343454);
           BigDecimal lat_min=new BigDecimal(61.03435454343454);
           String col_name="latitude";
           String col_name2="longitude";
           List&lt;BasicDBObject&gt; criteria=new ArrayList&lt;BasicDBObject&gt;();
           BasicDBObject searchQuery1 =new BasicDBObject(col_name, new BasicDBObject("$gte", lat_min).append("$lte",  lat_max));
           criteria.add(searchQuery1);
           BasicDBObject searchQuery2=new BasicDBObject(col_name2, new BasicDBObject("$gte", log_min).append("$lte",  log_max));
           criteria.add(searchQuery2); 
  
           DBCursor cursor = coll.find(query); 
           while (cursor.hasNext()) { 
                  DBObject cursorObj = cursor.next();                 
                LOGGER.info("Collection  successf");  
                  Object temp1 = cursorObj.get("longitude");
                  BigDecimal longitude = new BigDecimal(temp1.toString());
                  System.out.println("longitude ::::"+longitude);
                  Object temp2 =cursorObj.get("latitude");
                  BigDecimal latitude = new BigDecimal(temp2.toString());
                   LOGGER.info("done getting ");
  
            }
  }
  </code></pre>
  
  <p>I'm getting java.lang.IllegalArgumentException: can't serialize class java.math.BigDecimal</p>
  
  <p>Does anybody know what will be alernative of BigDecimal....</p>