private Month readOptionalMonth ( JSONValue val ) { String str = readOptionalString ( val ) ; if ( null != str ) { try { return Month . valueOf ( str ) ; } catch ( @ SuppressWarnings ( "unused" ) IllegalArgumentException e ) { // Do nothing -return the default value } } return null ; }
Read an optional month value form a JSON value .