/** * Overridden to simply call <code>deserialize()</code> method that does not take value * to update, since scalar values are usually non-mergeable. */ @Override // since 2.9 public T deserialize(JsonParser p, DeserializationContext ctxt, T intoValue) throws IOException { // 25-Oct-2016, tatu: And if attempt is made, see if we are to complain... ctxt.reportBadMerge(this); // except that it is possible to suppress this; and if so... return deserialize(p, ctxt); }
@Override public Object deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException { return wrapped.deserialize(jsonParser, deserializationContext); }
/** * Overridden to simply call <code>deserialize()</code> method that does not take value * to update, since scalar values are usually non-mergeable. */ @Override // since 2.9 public T deserialize(JsonParser p, DeserializationContext ctxt, T intoValue) throws IOException { // 25-Oct-2016, tatu: And if attempt is made, see if we are to complain... ctxt.reportBadMerge(this); // except that it is possible to suppress this; and if so... return deserialize(p, ctxt); }
protected T _deserializeFromArray(JsonParser p, DeserializationContext ctxt) throws IOException { JsonToken t; if (ctxt.hasSomeOfFeatures(FEATURES_ACCEPT_ARRAYS)) { t = p.nextToken(); if (t == JsonToken.END_ARRAY) { if (ctxt.isEnabled(DeserializationFeature.ACCEPT_EMPTY_ARRAY_AS_NULL_OBJECT)) { return getNullValue(ctxt); } } if (ctxt.isEnabled(DeserializationFeature.UNWRAP_SINGLE_VALUE_ARRAYS)) { final T parsed = deserialize(p, ctxt); if (p.nextToken() != JsonToken.END_ARRAY) { handleMissingEndArrayForSingle(p, ctxt); } return parsed; } } else { t = p.getCurrentToken(); } @SuppressWarnings("unchecked") T result = (T) ctxt.handleUnexpectedToken(_valueClass, t, p, null); return result; } }