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 basicTreeCodecabstraction 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 whetherexprOrPropertyis a validJsonPointerexpression or not (valid expression is either empty String""or starts with leading slash/character).final ObjectNodeJsonNode.withObject(String expr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) Short-cut equivalent to:final ObjectNodeJsonNode.withObject(JsonPointer ptr) Same asJsonNode.withObject(JsonPointer, OverwriteMode, boolean)but with defaults ofOvewriteMode#NULLS(overwrite mode) andtrueforpreferIndex(that is, will try to considerJsonPointersegments index if at all possible and only secondarily as property nameJsonNode.withObject(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 ObjectNodeBaseNodeDeserializer._deserializeObjectAtName(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 voidBaseNodeDeserializer._handleDuplicateProperty(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 JsonNodeBaseNodeDeserializer.updateObject(JsonParser p, DeserializationContext ctxt, ObjectNode node, tools.jackson.databind.deser.jackson.BaseNodeDeserializer.ContainerStack stack) Alternate deserialization method that is to update existingObjectNodeif possible. -
Uses of ObjectNode in tools.jackson.databind.node
Methods in tools.jackson.databind.node that return ObjectNodeModifier and TypeMethodDescriptionprotected ObjectNodeprotected ObjectNodeArrayNode._withObject(JsonPointer origPtr, JsonPointer currentPtr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) protected ObjectNodeBaseJsonNode._withObject(JsonPointer origPtr, JsonPointer currentPtr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) protected abstract ObjectNodeContainerNode._withObject(JsonPointer origPtr, JsonPointer currentPtr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) protected ObjectNodeObjectNode._withObject(JsonPointer origPtr, JsonPointer currentPtr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) protected ObjectNodeArrayNode._withObjectAddTailElement(JsonPointer tail, boolean preferIndex) protected ObjectNodeObjectNode._withObjectAddTailProperty(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 ObjectNodeValueNode.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 ObjectNodeContainerNode.objectNode()Factory method that constructs and returns an emptyObjectNodeConstruction 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 explicitnullvalue.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(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 booleanObjectNode._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 voidBeanPropertyWriter._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 voidUnwrappingBeanPropertyWriter._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 ObjectNodeStdSerializer.createSchemaNode(String type) protected ObjectNodeStdSerializer.createSchemaNode(String type, boolean isOptional)