static int readInt ( JsonNode node , String field ) throws NumberFormatException { String stringValue = node . get ( field ) . asText ( ) ; return ( int ) Float . parseFloat ( stringValue ) ; }
Reads a whole number from the given field of the node . Accepts numbers numerical strings and fractions .