public static Boolean safeJsonToBoolean ( Object obj ) { String str = safeJsonToString ( obj ) ; Boolean booleanValue = str != null ? Boolean . parseBoolean ( str ) : null ; return booleanValue ; }
Safely converts an object into an boolean