code: public static Boolean safeJsonToBoolean(Object obj) {
          String str = safeJsonToString(obj);
          Boolean booleanValue = str != null ? Boolean.parseBoolean(str) : null;
          return booleanValue;
      }
docs: Safely converts an object into an boolean
  
  @param obj The object to convert.
  @return a Boolean representing the boolean value of the Object (null only if the object was also null)