public static boolean isNumber ( JsonNode node , boolean isTypeLoose ) { if ( node . isNumber ( ) ) { return true ; } else if ( isTypeLoose ) { if ( TypeFactory . getValueNodeType ( node ) == JsonType . STRING ) { return isNumeric ( node . textValue ( ) ) ; } } return false ; }
Check if the type of the JsonNode s value is number based on the status of typeLoose flag .