Uses of Class
com.fasterxml.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.Classes needed for JSON schema support (currently just ability
to generate schemas using serialization part of data mapping)
Contains concrete
JsonNode
implementations
Jackson uses for the Tree model.Contains implementation classes of serialization part of
data binding.
Contains implementation classes of serialization part of
data binding.
-
Uses of ObjectNode in com.fasterxml.jackson.databind
Methods in com.fasterxml.jackson.databind that return ObjectNodeModifier and TypeMethodDescriptionObjectMapper.createObjectNode()
Note: return type is co-variant, as basic ObjectCodec abstraction cannot refer to concrete node types (as it's part of core package, whereas impls are part of mapper package)final ObjectNode
JsonNode.withObject
(com.fasterxml.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
(com.fasterxml.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.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:JsonNode.withObjectProperty
(String propName) Method similar toJsonNode.withObject(JsonPointer, OverwriteMode, boolean)
-- basically short-cut to: -
Uses of ObjectNode in com.fasterxml.jackson.databind.jsonschema
Methods in com.fasterxml.jackson.databind.jsonschema that return ObjectNodeModifier and TypeMethodDescriptionJsonSchema.getSchemaNode()
Deprecated.Method for accessing root JSON object of the contained schema.Constructors in com.fasterxml.jackson.databind.jsonschema with parameters of type ObjectNodeModifierConstructorDescriptionJsonSchema
(ObjectNode schema) Deprecated.Main constructor for schema instances. -
Uses of ObjectNode in com.fasterxml.jackson.databind.node
Methods in com.fasterxml.jackson.databind.node that return ObjectNodeModifier and TypeMethodDescriptionprotected ObjectNode
protected ObjectNode
ArrayNode._withObject
(com.fasterxml.jackson.core.JsonPointer origPtr, com.fasterxml.jackson.core.JsonPointer currentPtr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) protected ObjectNode
BaseJsonNode._withObject
(com.fasterxml.jackson.core.JsonPointer origPtr, com.fasterxml.jackson.core.JsonPointer currentPtr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) protected abstract ObjectNode
ContainerNode._withObject
(com.fasterxml.jackson.core.JsonPointer origPtr, com.fasterxml.jackson.core.JsonPointer currentPtr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) protected ObjectNode
ObjectNode._withObject
(com.fasterxml.jackson.core.JsonPointer origPtr, com.fasterxml.jackson.core.JsonPointer currentPtr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) protected ObjectNode
ArrayNode._withObjectAddTailElement
(com.fasterxml.jackson.core.JsonPointer tail, boolean preferIndex) protected ObjectNode
ObjectNode._withObjectAddTailProperty
(com.fasterxml.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 fieldName) 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 field to specified String value.Method for setting value of a field to specified binary valueMethod for setting value of a field to specified numeric value.Method for setting value of a field to specified numeric value.Method for setting value of a field to specified numeric value.Method for setting value of a field 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 field to specified numeric value.Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.Method for setting value of a field to specified String value.ObjectNode.put
(String fieldName, BigDecimal v) Method for setting value of a field to specified numeric value.ObjectNode.put
(String fieldName, BigInteger v) Method for setting value of a field 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 field 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.Deprecated.Deprecated.BaseJsonNode.withObject
(com.fasterxml.jackson.core.JsonPointer ptr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) ObjectNode.withObject
(String exprOrProperty) ObjectNode.withObjectProperty
(String propName) Methods in com.fasterxml.jackson.databind.node with parameters of type ObjectNodeModifier and TypeMethodDescriptionprotected boolean
ObjectNode._childrenEqual
(ObjectNode other) ObjectNode.putAll
(ObjectNode other) Deprecated.<T extends JsonNode>
TObjectNode.setAll
(ObjectNode other) Method for adding all properties of the given Object, overriding any existing values for those properties. -
Uses of ObjectNode in com.fasterxml.jackson.databind.ser
Methods in com.fasterxml.jackson.databind.ser with parameters of type ObjectNodeModifier and TypeMethodDescriptionprotected void
BeanPropertyWriter._depositSchemaProperty
(ObjectNode propertiesNode, JsonNode schemaNode) void
BeanPropertyFilter.depositSchemaProperty
(BeanPropertyWriter writer, ObjectNode propertiesNode, SerializerProvider provider) Deprecated.Since 2.3: new code should use the alternativedepositSchemaProperty
methodvoid
BeanPropertyWriter.depositSchemaProperty
(ObjectNode propertiesNode, SerializerProvider provider) Deprecated.void
PropertyFilter.depositSchemaProperty
(PropertyWriter writer, ObjectNode propertiesNode, SerializerProvider provider) Deprecated.Since 2.3: new code should use the alternativedepositSchemaProperty
methodabstract void
PropertyWriter.depositSchemaProperty
(ObjectNode propertiesNode, SerializerProvider provider) Deprecated.Since 2.2 -
Uses of ObjectNode in com.fasterxml.jackson.databind.ser.impl
Methods in com.fasterxml.jackson.databind.ser.impl with parameters of type ObjectNodeModifier and TypeMethodDescriptionprotected void
UnwrappingBeanPropertyWriter._depositSchemaProperty
(ObjectNode propertiesNode, JsonNode schemaNode) void
SimpleBeanPropertyFilter.depositSchemaProperty
(BeanPropertyWriter writer, ObjectNode propertiesNode, SerializerProvider provider) Deprecated.void
SimpleBeanPropertyFilter.depositSchemaProperty
(PropertyWriter writer, ObjectNode propertiesNode, SerializerProvider provider) Deprecated. -
Uses of ObjectNode in com.fasterxml.jackson.databind.ser.std
Methods in com.fasterxml.jackson.databind.ser.std that return ObjectNodeModifier and TypeMethodDescriptionprotected ObjectNode
StdSerializer.createSchemaNode
(String type) protected ObjectNode
StdSerializer.createSchemaNode
(String type, boolean isOptional) Methods in com.fasterxml.jackson.databind.ser.std with parameters of type ObjectNodeModifier and TypeMethodDescriptionvoid
MapProperty.depositSchemaProperty
(ObjectNode propertiesNode, SerializerProvider provider) Deprecated.
setAll(ObjectNode)
,