Uses of Class
tools.jackson.databind.node.ObjectNode
Packages that use ObjectNode
Package
Description
Basic data binding (mapping) functionality that
allows for reading JSON content into Java Objects (POJOs)
and JSON Trees (
JsonNode
), as well as
writing Java Objects and trees as JSON.Package that contains standard value and key deserializer implementations
Jackson uses for its own public types.
Contains concrete
JsonNode
implementations
Jackson uses for the Tree model.Contains implementation classes of serialization part of
data binding.
-
Uses of ObjectNode in tools.jackson.databind
Methods in tools.jackson.databind that return ObjectNodeModifier and TypeMethodDescriptionObjectMapper.createObjectNode()
Note: return type is co-variant, as basicTreeCodec
abstraction cannot refer to concrete node types (as it's part of core package, whereas impls are part of mapper package)ObjectReader.createObjectNode()
ObjectWriter.createObjectNode()
JsonNode.withObject
(String exprOrProperty) Method that works in one of possible ways, depending on whetherexprOrProperty
is a validJsonPointer
expression or not (valid expression is either empty String""
or starts with leading slash/
character).final ObjectNode
JsonNode.withObject
(String expr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) Short-cut equivalent to:final ObjectNode
JsonNode.withObject
(tools.jackson.core.JsonPointer ptr) Same asJsonNode.withObject(JsonPointer, OverwriteMode, boolean)
but with defaults ofOvewriteMode#NULLS
(overwrite mode) andtrue
forpreferIndex
(that is, will try to considerJsonPointer
segments index if at all possible and only secondarily as property nameJsonNode.withObject
(tools.jackson.core.JsonPointer ptr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) Method that can be called on Object or Array nodes, to access a Object-valued node pointed to by givenJsonPointer
, if such a node exists: or if not, an attempt is made to create one and return it.JsonNode.withObjectProperty
(String propName) Method similar toJsonNode.withObject(JsonPointer, OverwriteMode, boolean)
-- basically short-cut to: -
Uses of ObjectNode in tools.jackson.databind.deser.jackson
Methods in tools.jackson.databind.deser.jackson that return ObjectNodeModifier and TypeMethodDescriptionprotected final ObjectNode
BaseNodeDeserializer._deserializeObjectAtName
(tools.jackson.core.JsonParser p, DeserializationContext ctxt, JsonNodeFactory nodeFactory, tools.jackson.databind.deser.jackson.BaseNodeDeserializer.ContainerStack stack) Alternate deserialization method used when parser already points to first PROPERTY_NAME and not START_OBJECT.Methods in tools.jackson.databind.deser.jackson with parameters of type ObjectNodeModifier and TypeMethodDescriptionprotected void
BaseNodeDeserializer._handleDuplicateProperty
(tools.jackson.core.JsonParser p, DeserializationContext ctxt, JsonNodeFactory nodeFactory, String propName, ObjectNode objectNode, JsonNode oldValue, JsonNode newValue) Method called when there is a duplicate value for an Object property.protected final JsonNode
BaseNodeDeserializer.updateObject
(tools.jackson.core.JsonParser p, DeserializationContext ctxt, ObjectNode node, tools.jackson.databind.deser.jackson.BaseNodeDeserializer.ContainerStack stack) Alternate deserialization method that is to update existingObjectNode
if possible. -
Uses of ObjectNode in tools.jackson.databind.node
Methods in tools.jackson.databind.node that return ObjectNodeModifier and TypeMethodDescriptionprotected ObjectNode
protected ObjectNode
ArrayNode._withObject
(tools.jackson.core.JsonPointer origPtr, tools.jackson.core.JsonPointer currentPtr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) protected ObjectNode
BaseJsonNode._withObject
(tools.jackson.core.JsonPointer origPtr, tools.jackson.core.JsonPointer currentPtr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) protected abstract ObjectNode
ContainerNode._withObject
(tools.jackson.core.JsonPointer origPtr, tools.jackson.core.JsonPointer currentPtr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) protected ObjectNode
ObjectNode._withObject
(tools.jackson.core.JsonPointer origPtr, tools.jackson.core.JsonPointer currentPtr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) protected ObjectNode
ArrayNode._withObjectAddTailElement
(tools.jackson.core.JsonPointer tail, boolean preferIndex) protected ObjectNode
ObjectNode._withObjectAddTailProperty
(tools.jackson.core.JsonPointer tail, boolean preferIndex) ArrayNode.addObject()
Method that will construct an ObjectNode and add it at the end of this array node.ObjectNode.deepCopy()
ArrayNode.findParent
(String propertyName) ObjectNode.findParent
(String propertyName) final ObjectNode
ValueNode.findParent
(String fieldName) ArrayNode.insertObject
(int index) Method for creating anObjectNode
, appending it at the end of this array, and returning the newly created node (note: NOT 'this' array)final ObjectNode
ContainerNode.objectNode()
Factory method that constructs and returns an emptyObjectNode
Construction is done using registeredJsonNodeFactory
.JsonNodeCreator.objectNode()
JsonNodeFactory.objectNode()
Factory method for constructing an empty JSON Object ("struct") nodeMethod for setting value of a property to specified String value.Method for setting value of a property to specified binary valueMethod for setting value of a property to specified numeric value.Method for setting value of a property to specified numeric value.Method for setting value of a property to specified numeric value.Method for setting value of a property to specified numeric value.Method for setting value of a property to specified numeric value.Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.Method for setting value of a property to specified numeric value.Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.Method for setting value of a property to specified String value.ObjectNode.put
(String propertyName, BigDecimal v) Method for setting value of a property to specified numeric value.ObjectNode.put
(String propertyName, BigInteger v) Method for setting value of a property to specified numeric value.Method for setting value of a property to explicitnull
value.Method that will construct an ObjectNode and add it as a property of thisObjectNode
, replacing old value, if any.Method for adding an opaque Java value as the value of specified property.ObjectNode.putRawValue
(String propertyName, RawValue raw) ObjectNode.remove
(Collection<String> propertyNames) Method for removing specified properties out of this ObjectNode.ObjectNode.removeAll()
Method for removing all properties, such that this ObjectNode will contain no properties after call.Method for removing all properties out of this ObjectNode except for ones specified in argument.ObjectNode.retain
(Collection<String> propertyNames) Method for removing all properties out of this ObjectNode except for ones specified in argument.Method that will set specified property, replacing old value, if any.Method for adding given properties to this object node, overriding any existing values for those properties.ObjectNode.setAll
(ObjectNode other) Method for adding all properties of the given Object, overriding any existing values for those properties.BaseJsonNode.withObject
(tools.jackson.core.JsonPointer ptr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) ObjectNode.withObject
(String exprOrProperty) ObjectNode.withObjectProperty
(String propName) Method for removing property from this ObjectNode, and returning instance after removal.ObjectNode.without
(Collection<String> propertyNames) Method for removing specified properties out of this ObjectNode.Methods in tools.jackson.databind.node with parameters of type ObjectNodeModifier and TypeMethodDescriptionprotected boolean
ObjectNode._childrenEqual
(ObjectNode other) ObjectNode.setAll
(ObjectNode other) Method for adding all properties of the given Object, overriding any existing values for those properties. -
Uses of ObjectNode in tools.jackson.databind.ser
Methods in tools.jackson.databind.ser with parameters of type ObjectNodeModifier and TypeMethodDescriptionprotected void
BeanPropertyWriter._depositSchemaProperty
(ObjectNode propertiesNode, JsonNode schemaNode) -
Uses of ObjectNode in tools.jackson.databind.ser.bean
Methods in tools.jackson.databind.ser.bean with parameters of type ObjectNodeModifier and TypeMethodDescriptionprotected void
UnwrappingBeanPropertyWriter._depositSchemaProperty
(ObjectNode propertiesNode, JsonNode schemaNode) -
Uses of ObjectNode in tools.jackson.databind.ser.std
Methods in tools.jackson.databind.ser.std that return ObjectNodeModifier and TypeMethodDescriptionprotected ObjectNode
StdSerializer.createSchemaNode
(String type) protected ObjectNode
StdSerializer.createSchemaNode
(String type, boolean isOptional)