protected JsonNode getValue ( JsonNode node , String property ) { if ( node == null ) { throw new MissingNodeException ( property + " is missing" ) ; } if ( property == null ) { return node ; } JsonNode value = node . at ( formatPropertyName ( property ) ) ; if ( value . isMissingNode ( ) ) { throw new MissingNodeException ( property + " is missing" ) ; } return value ; }
Fetches the value for a property from the passed JsonNode . Throws MissingNodeException if the property doesn t exist