code: public static Double safeJsonToDouble(Object obj) {
          Double doubleValue = null;
  
          try {
              String str = safeJsonToString(obj);
              doubleValue = str != null ? Double.parseDouble(str) : null;
          } catch (NumberFormatException e) {
              LOGGER.warn("Safe JSON conversion to Double failed", e);
          }
  
          return doubleValue;
      }
docs: Safely converts an object into an double
  
  @param obj The object to convert.
  @return a Double representing the double value of the Object (null if the object cannot be converted to Double)