Method for visiting type hierarchy for given type, using specified visitor.
Method for visiting type hierarchy for given type, using specified visitor.
This method can be used for things like generating Json Schema instance for specified type.
Type to generate schema for (possibly with generic signature)
2.1
Convenience method for constructing com.fasterxml.jackson.databind.JavaType out of given
type (typically java.lang.Class
), but without explicit
context.
Convenience method for constructing com.fasterxml.jackson.databind.JavaType out of given
type (typically java.lang.Class
), but without explicit
context.
Convenience method for doing two-step conversion from given value, into instance of given value type.
Convenience method for doing two-step conversion from given value, into instance of given value type. This is functionality equivalent to first serializing given value into JSON, then binding JSON data into value of given type, but may be executed without fully serializing into JSON. Same converters (serializers, deserializers) will be used as for data binding, meaning same object mapper configuration works.
java.lang.IllegalArgumentException
If conversion fails due to incompatible type;
if so, root cause will contain underlying checked exception data
binding functionality threw
Method to deserialize JSON content into a Java type, reference to which is passed as argument.
Method to deserialize JSON content into a Java type, reference to which is passed as argument. Type is passed using so-called "super type token" (see ) and specifically needs to be used if the root type is a parameterized (generic) container type.
Method for reading sequence of Objects from parser stream.
Method for reading sequence of Objects from parser stream.
Sequence can be either root-level "unwrapped" sequence (without surrounding
JSON array), or a sequence contained in a JSON Array.
In either case com.fasterxml.jackson.core.JsonParser must point to the first token of
the first element, OR not point to any token (in which case it is advanced
to the next token). This means, specifically, that for wrapped sequences,
parser MUST NOT point to the surrounding START_ARRAY
but rather
to the token following it.
Note that com.fasterxml.jackson.databind.ObjectReader has more complete set of variants.
Factory method for constructing com.fasterxml.jackson.databind.ObjectReader that will read or update instances of specified type
Factory method for constructing com.fasterxml.jackson.databind.ObjectReader that will read or update instances of specified type
Factory method for constructing com.fasterxml.jackson.databind.ObjectReader that will deserialize objects using specified JSON View (filter).
Factory method for constructing com.fasterxml.jackson.databind.ObjectReader that will deserialize objects using specified JSON View (filter).
Convenience conversion method that will bind data given JSON tree contains into specific value (usually bean) type.
Convenience conversion method that will bind data given JSON tree contains into specific value (usually bean) type.
Equivalent to:
objectMapper.convertValue(n, valueClass);
Factory method for constructing com.fasterxml.jackson.databind.ObjectWriter that will serialize objects using specified root type, instead of actual runtime type of value.
Factory method for constructing com.fasterxml.jackson.databind.ObjectWriter that will serialize objects using specified root type, instead of actual runtime type of value. Type must be a super-type of runtime type.
Main reason for using this method is performance, as writer is able to pre-fetch serializer to use before write, and if writer is used more than once this avoids addition per-value serializer lookups.
2.5
Factory method for constructing com.fasterxml.jackson.databind.ObjectWriter that will serialize objects using specified JSON View (filter).
Factory method for constructing com.fasterxml.jackson.databind.ObjectWriter that will serialize objects using specified JSON View (filter).
(Since version ) see corresponding Javadoc for more information.
(Since version 2.5) use addMixIn
(Since version ) see corresponding Javadoc for more information.
Method to use for adding mix-in annotations to use for augmenting specified class or interface.
Method to use for adding mix-in annotations to use for augmenting
specified class or interface. All annotations from
mixinSource
are taken to override annotations
that target
(or its supertypes) has.
Class (or interface) whose annotations to effectively override
Class (or interface) whose annotations are to be "added" to target's annotations, overriding as necessary
(Since version 2.12.2) this support in jackson-databind is moving to the MapperBuilder
Method that can be called to check whether mapper thinks it could deserialize an Object of given type.
Method that can be called to check whether mapper thinks it could deserialize an Object of given type. Check is done by checking whether a deserializer can be found for the type.
True if mapper can find a serializer for instances of given class (potentially serializable), false otherwise (not serializable)
(Since version 2.12.1) jackson-databind will not implement this in v3.0.0
Method that can be called to check whether mapper thinks it could serialize an instance of given Class.
Method that can be called to check whether mapper thinks it could serialize an instance of given Class. Check is done by checking whether a serializer can be found for the type.
True if mapper can find a serializer for instances of given class (potentially serializable), false otherwise (not serializable)
(Since version 2.12.1) jackson-databind will not implement this in v3.0.0
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version 2.12.2) this support in jackson-databind is moving to the MapperBuilder
Generate Json-schema instance for specified class.
Generate Json-schema instance for specified class.
The class to generate schema for
Constructed JSON schema.
(Since version 2.2.2) JsonSchema is deprecated in favor of JsonFormatVisitor
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
Factory method for constructing com.fasterxml.jackson.databind.ObjectReader that will read or update instances of specified type
Factory method for constructing com.fasterxml.jackson.databind.ObjectReader that will read or update instances of specified type
(Since version 2.6) Replaced with readerFor
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version 2.5) Replaced with writerFor
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.