protected void reportUnknownProperty(DeserializationContext ctxt, Object instanceOrClass, String fieldName) throws IOException, JsonProcessingException { // throw exception if that's what we are expected to do if (ctxt.isEnabled(DeserializationConfig.Feature.FAIL_ON_UNKNOWN_PROPERTIES)) { throw ctxt.unknownFieldException(instanceOrClass, fieldName); } // ... or if not, just ignore }
protected void reportUnknownProperty(DeserializationContext ctxt, Object instanceOrClass, String fieldName) throws IOException, JsonProcessingException { // throw exception if that's what we are expected to do if (ctxt.isEnabled(DeserializationConfig.Feature.FAIL_ON_UNKNOWN_PROPERTIES)) { throw ctxt.unknownFieldException(instanceOrClass, fieldName); } // ... or if not, just ignore }
protected void reportUnknownProperty(DeserializationContext ctxt, Object instanceOrClass, String fieldName) throws IOException, JsonProcessingException { // throw exception if that's what we are expected to do if (ctxt.isEnabled(DeserializationConfig.Feature.FAIL_ON_UNKNOWN_PROPERTIES)) { throw ctxt.unknownFieldException(instanceOrClass, fieldName); } // ... or if not, just ignore }
protected void reportUnknownProperty(DeserializationContext ctxt, Object instanceOrClass, String fieldName) throws IOException, JsonProcessingException { // throw exception if that's what we are expected to do if (ctxt.isEnabled(DeserializationConfig.Feature.FAIL_ON_UNKNOWN_PROPERTIES)) { throw ctxt.unknownFieldException(instanceOrClass, fieldName); } // ... or if not, just ignore }
protected void reportUnknownProperty(DeserializationContext ctxt, Object instanceOrClass, String fieldName) throws IOException, JsonProcessingException { // throw exception if that's what we are expected to do if (ctxt.isEnabled(DeserializationConfig.Feature.FAIL_ON_UNKNOWN_PROPERTIES)) { throw ctxt.unknownFieldException(instanceOrClass, fieldName); } // ... or if not, just ignore }
protected void reportUnknownProperty(DeserializationContext ctxt, Object instanceOrClass, String fieldName) throws IOException, JsonProcessingException { // throw exception if that's what we are expected to do if (ctxt.isEnabled(DeserializationConfig.Feature.FAIL_ON_UNKNOWN_PROPERTIES)) { throw ctxt.unknownFieldException(instanceOrClass, fieldName); } // ... or if not, just ignore }